Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Re: pattern matching on a single lineby FouRPlaY (Monk) |
on Jun 05, 2001 at 23:25 UTC ( [id://85960]=note: print w/replies, xml ) | Need Help?? |
I thought @second = map EXPR, @first; applied EXPR
to each element of @first and placed the results
in @second. And since m// doesn't change anything,
then @second would equal @first.
So something like:
Would be more appropriate. However, I'm willing to bet heavily that your Perl knowledge far exceeds mine, so I'm wondering: do I misunderstand map or m// (or both)? FouRPlaY Learning Perl or Going To die() Trying
In Section
Seekers of Perl Wisdom
|
|