Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

davorg (18)

davorg
  dave@dave.org.uk
http://dave.org.uk/
Yahoo! ID: daveorguk (Add User, Send Message)

Hacker, author, trainer

Technorati Profile [technorati.com]

Journal of davorg (18)

Thursday November 14, 2002
06:58 AM

Confusing the Newbies

[ #8944 ]

I found this advice in a thread in a Linux newsgroup. The original question was typical newbie confusion about use strict forcing them to declare variables. Amongst all the advice (of variable quality!) on how to declare variables, I found someone saying that you could declare variables using syntax like:

use strict qw($foo);

The confusing thing is that it seems to work but, of course, it's not doing what the poster thinks at all. In fact, it has the potentially disasterous effect of turning "strict" off completely.

Perhaps it would be better if use strict complained if it got parameters that it didn't understand.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • it has the potentially disasterous effect of turning "strict" off completely.
    'Not turning "strict" on"' even.

    Oh, can I get a +Informative if I link to the thread [pm.org] on London.pm discussing this ;-)

  • Perhaps it would be better if use strict complained if it got parameters that it didn't understand.

    I'm shocked that a co-provoker of Acme::USIG would suggest something that would break this delightful module. USIG passes to use strict the URL of the original, historical and theatrical use strict is gay bulletin board exchange between BK, P.Cawley and D.Cross. Maybe I should file a bug report because this URL is long gone and should be replaced with the new and improved wayback machine one [archive.org].

    Moreover, ha

    --
    /-\