Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: 'use strict' without a semicolon can be interesting

by ikegami (Patriarch)
on Jul 13, 2010 at 18:30 UTC ( [id://849344]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 'use strict' without a semicolon can be interesting
in thread 'use strict' without a semicolon can be interesting

It already does that.

$ perl -e'use strict "foo"' Unknown 'strict' tag(s) 'foo' at -e line 1 BEGIN failed--compilation aborted at -e line 1.

You passed an empty list which is perfectly valid (i.e. the same as use strict;).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://849344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2025-06-12 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.