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 ( [id://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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found