Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: print source golf

by daxim (Curate)
on Oct 14, 2019 at 17:24 UTC ( #11107439=note: print w/replies, xml ) Need Help??


in reply to print source golf

print do{@ARGV=$0;*/;<>}; # wtf
*/ is the glob for the family of variables named /, short for *main::/.

Perl core uses $/. Regexp::Grammars uses %/.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2020-09-22 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (129 votes). Check out past polls.

    Notices?