Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

A feature of use

by ambrus (Abbot)
on Aug 19, 2008 at 19:57 UTC ( #705321=obfuscated: print w/ replies, xml ) Need Help??

Look at the following snippet.

perl -e 'open strict, ">&", STDOUT or die; use strict; print strict fo +obar, "\n";'

This prints foobar so clearly foobar is interpretted as a bareword. However, we use strict, so that should disallow barewords. Why is this? (The title of the post can give a hint.)

Comment on A feature of use
Select or Download Code
Re: A feature of use
by ambrus (Abbot) on Aug 20, 2008 at 19:57 UTC

    In fact, even this works.

    perl -e 'if (0) { open strict; } use strict; print STDOUT foobar, "\n" +;'
Re: A feature of use
by jdalbec (Deacon) on Aug 20, 2008 at 22:45 UTC
Reaped: Re^2: A feature of use
by NodeReaper (Curate) on Aug 21, 2008 at 07:24 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://705321]
Approved by Joost
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2015-07-06 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls