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


in reply to Re: Yet Another Perl Aptitude Test (yapat)
in thread Yet Another Perl Aptitude Test (yapat)

The warnings pragma is new in Perl 5.6. Under earlier versions you can get much the same effect using the -w command line option.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

  • Comment on Re: Re: Yet Another Perl Aptitude Test (yapat)

Replies are listed 'Best First'.
Re: Re: Re: Yet Another Perl Aptitude Test (yapat)
by tame1 (Pilgrim) on Feb 28, 2001 at 21:07 UTC
    Running in Perl 5.005, the darn thing always tells me I am wrong, even when I am not!

    Kind of disheartening! (The use warnings is now commented out)

    What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

      "Even when I am not" ... could you please explain?

      use warnings / -w spits out what it spits out for a reason. What is it telling you you're doing wrong, and why is what you're doing not wrong?

      yes, this is a genuine question.

      Philosophy can be made out of anything. Or less -- Jerry A. Fodor