Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: -p option with __DATA__

by codeacrobat (Chaplain)
on Nov 19, 2009 at 19:44 UTC ( #808238=note: print w/replies, xml ) Need Help??


in reply to -p option with __DATA__

try aliasing DATA to ARGV.
#!/usr/bin/perl -p BEGIN{*ARGV=*DATA} __DATA__ hello world

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2021-09-19 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?