good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Precedence of qwby doc_faustroll (Scribe) |
on Apr 04, 2006 at 17:03 UTC ( [id://541188]=note: print w/replies, xml ) | Need Help?? |
seems like you are getting too complicated and choosing the wrong operator here. Tell me why you want to use the qw operator?
from perldoc perlop qw/STRING/ Evaluates to a list of the words extracted out of STRING, using embedded whitespace as the word delimiters. It can be under- stood as being roughly equivalent to: split(’ ’, q/STRING/); the differences being that it generates a real list at compile time, and in scalar context it returns the last element in the list. So why in the heck would you use this operator on one value in the middle of a push statement. The interpreter does its best but you are making it hemmorage here. use the q operator.
In Section
Seekers of Perl Wisdom
|
|