in reply to Re: Re: !~ /\w/ challenge, anyone?
in thread !~ /\w/ challenge, anyone?

Is it necessary to redirect file to the script instead of letting <> read the argument?
Yep, otherwise it'll just hang waiting on STDIN.

Here's a solution that adheres to the rules but is awful sneaky

shell> cat > obfuwc.pl #!/usr/bin/perl -lp -s ++(${$::{$-}}=()=<>) ^D shell> chmod +x obfuwc.pl shell> ./obfuwc.pl --=_ < file
So the actual code passes the /\w/ but sneaks through the rules by passing in _. I can't say I'm proud ;)
HTH

_________
broquaint

Replies are listed 'Best First'.
Re^4: !~ /\w/ challenge, anyone?
by John M. Dlugosz (Monsignor) on Feb 05, 2003 at 20:07 UTC
    Why would it wait on STDIN, instead of opening and reading from file?