http://www.perlmonks.org?node_id=672754


in reply to Re: The day of today
in thread The day of today

print "Today is day @localtime[3].";

Doesn't your perl warn like

Scalar value @localtime[3] better written as $localtime[3]

? You should do it ;-)

-- Frank

Replies are listed 'Best First'.
Re^3: The day of today
by Erez (Priest) on Mar 07, 2008 at 14:33 UTC

    See? That's why you need to use strict and warnings :P

    Software speaks in tongues of man.
    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphores.