On 6/10/05, Lawrence Statton <[EMAIL PROTECTED]> wrote: > > > my $localtime; > > > @$localtime{qw / second minute hour mday month year weekday yearday isdst > > > / > > } = > > > localtime(time); > > > > > > [1] A style nit: > > > > Speaking of nitpicks: > > my %localtime; > > Assuming you are suggesting making that change, I'd reccomend against > it, unless you wish to elicit the following error: > > Global symbol "$localtime" requires explicit package name at /tmp/try line 12. > Global symbol "$localtime" requires explicit package name at /tmp/try line 14. > Execution of /tmp/try aborted due to compilation errors.
Huh. So it does... that doesn't look like it's making a reference, though. I think I would write that as @{$localtime}{ ... } for clarity. > Computer software consists of only two components: ones and > zeros, in roughly equal proportions. All that is required is to > sort them into the correct order. Heh. I like that. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>