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

Re: [ID 20000307.005] Date Problem

Thread Previous | Thread Next
From:
Jeff Pinyan
Date:
March 7, 2000 08:51
Subject:
Re: [ID 20000307.005] Date Problem
Message ID:
Pine.GSO.4.21.0003071148230.21801-100000@crusoe.crusoe.net
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             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About