Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re (tilly) 4: (Golf) JAPH?

by tilly (Archbishop)
on May 17, 2001 at 14:50 UTC ( #81198=note: print w/ replies, xml ) Need Help??


in reply to Re: Re (tilly) 2: (Golf) JAPH?
in thread (Golf) JAPH?

I didn't miss that detail. Here is a Perl program that both writes and runs the script under Unix:

my $filename = "Just another Perl hacker,\n"; open (OUT, "> $filename\0") or die "Cannot write '$filename': $!"; print OUT 'die$0'; close OUT; system "perl '$filename'";
Do you see where the return is coming from now?


Comment on Re (tilly) 4: (Golf) JAPH?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-06 16:00 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 (77 votes), past polls