Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(tye)Re: (Golf) Segfault Perl

by tye (Sage)
on Apr 03, 2002 at 22:35 UTC ( [id://156470]=note: print w/replies, xml ) Need Help??


in reply to (Golf) Segfault Perl

unpack"p",$^X

But if I save it to a file called "puke": unpack$0,$0

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: (Golf) Segfault Perl
by the_slycer (Chaplain) on Apr 03, 2002 at 23:30 UTC
    Drop the quotes to save another character.
    unpack p,$~
    Works on my linux box and my windows machine.
Re: (tye)Re: (Golf) Segfault Perl
by Chmrr (Vicar) on Apr 03, 2002 at 22:49 UTC

    Using $~ instead of $^X makes it one character shorter.

    perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found