in reply to The day of today
I know if I got rid of "use strict" it could be much shorter, but at work all scripts must have this.
and for a very good reason. As for your code:
#!/usr/local/bin/perl use strict; use warnings; my @localtime = localtime(); print "Today is day $localtime[3].";
UPDATE: changed @localtime to $localtime, ++haoess
Software speaks in tongues of man.
Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphores.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: The day of today
by haoess (Curate) on Mar 07, 2008 at 12:31 UTC | |
by Erez (Priest) on Mar 07, 2008 at 14:33 UTC | |
Re^2: The day of today
by johngg (Canon) on Mar 07, 2008 at 13:57 UTC |