|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Writing highly obfuscated code in Perlby Wookie (Beadle) |
| on Jul 13, 2001 at 23:11 UTC ( [id://96624]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
While I admit to being very new to Perl - I find default/pre-defined variables to be a source of constant inspiration. Using $_ $@ $| etc. can really confuse things.
Oh yeah - and overuse $_ - superfluously if possible - as an example from my first attempt I submitted today:
(_ is a sub that returns the input++) and now you can use any of the following - all to get 4: game(Wookie,opponent) eq 'Wookie' ? undef $problem : remove_limbs(arms,opponent);
In Section
Tutorials
|
|
||||||||||||||||||||||||||||