Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Determining the dayname for the last day of any given month

by ikegami (Pope)
on Jun 20, 2006 at 15:40 UTC ( #556433=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my ($y, $m) = ($year-1900, $month-1);
    
      # Day before the first of next month:
      my $last = timelocal_nocheck(0, 0, 0, 1-1, $m+1, $y);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556433]
help
Chatterbox?
[huck]: but you can print a hash in sorted order
[huck]: my @aa; for my $key (sort keys %hash){push @aa,$key,$hash{$ke y};} print join(',',@aa)."\n ";

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-05-27 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?