On 11 May 2000, at 17:57, Philip Newton wrote: > John Carter wrote: > > On Thu, 11 May 2000, Sven Neuhaus wrote: > > > > > Cheating is fun: > > > perl -e'die`nc a.tm 9000`' > > > > > > Gee, I'm famous now! > > > > What does 'nc' do and why do you expect a file a.tm to exist? > > nc is probably "netcat" -- connect to <host> on <port> and transfer data. > a.tm == 195.126.62.76 == bigmac.neopoly.de . If you connect to this host on > port 9000, it'll send you the string "Just another Perl hacker,\n" and then > close the connection. nc takes this string and passes it to stdout, whence > it's captured by `backticks`. > > Works fine on a Linux box I use. Not on mine, and it highlights why that approach is not in the spirit of JAPH. Consider doing the following: cat >a <<EOF #!/bin/bash echo Not a Perl Hacker EOF chmod +x a and then you have: perl -e 'die`a`' Do I win??? /Bernie\ -- Bernie Cosell Fantasy Farm Fibers mailto:bernie@fantasyfarm.com Pearisburg, VA --> Too many people, too few sheep <-- ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe