![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: How can I use the the return value of split without assigning?by hding (Chaplain) |
on Jul 27, 2001 at 05:59 UTC ( [id://100207]=note: print w/replies, xml ) | Need Help?? |
You can get the "car" (couldn't they have thought of a better name?)... Did I get car and cdr mixed up again?I can't imagine how I could be so careless. In Common Lisp, you may freely use 'first' instead of 'car' and 'rest' instead of 'cdr' - they're completely identical. I tend to use first/rest when I'm thinking of something as a list, and car/cdr when I'm thinking of it as a cons cell, but that's hardly a hard and fast rule, even for me.
In Section
Seekers of Perl Wisdom
|
|