A one-liner certainly would have served the purpose, but it wouldn't have been as readable. This was an interview question, not a Perl Golf competition. :-)
In reply to Re: Re: Perl Destroys Interview Question
by redsquirrel
in thread Perl Destroys Interview Question
by redsquirrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |