There's more than one way to do things | |
PerlMonks |
Re: Re: Re: Anagram Solverby salvadors (Pilgrim) |
on Jan 10, 2001 at 16:07 UTC ( [id://50907]=note: print w/replies, xml ) | Need Help?? |
Here's 12 more characters taken off.. Nice. -l switch to save 6 characters. Must remember that. In fact must learn a lot more of the command line switches. I should really have spotted the spurious space at the start, the calling the sub without ()s, the needless $_, and being able to remove the () on the for by moving the for to the end though ... That gets the actual 'executable' code down to 69 characters now, which I think is much more in keeping with the original "do it one line" ideal.. You want it in one line? Does it have to fit in 80 columns? :-) --Larry Wall in <7349@jpl-devvax.JPL.NASA.GOV> Tony
In Section
Cool Uses for Perl
|
|