develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000307.005] Date Problem

Thread Previous | Thread Next
Jeff Pinyan
March 7, 2000 08:51
Re: [ID 20000307.005] Date Problem
Message ID:
On Mar 7, Ronald J Kimball said:

>On Tue, Mar 07, 2000 at 04:23:12PM +0000, David Gillen wrote:

>> print "It is $weekday the $day th of $month";

Oh, and if you want the string "th" to follow the $day variable, then you
can do something like

  print "... the ${day}th of $month";

MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve           
PerlMonth - An Online Perl Magazine  
The Perl Archive - Articles, Forums, etc.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About