laziness, impatience, and hubris | |
PerlMonks |
Re: adding elements to already exisiting elements in an arrayby regexes (Hermit) |
on May 15, 2008 at 07:14 UTC ( [id://686673]=note: print w/replies, xml ) | Need Help?? |
Hello, In addition to samtregar's comments below, if you know that you will have multiple entries, then you need to initialize the array as an array reference to begin with... for example, Note: code has not been tested. See perldoc -f ref for some details... Hope this helps! regexes ------------------------- Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race. -- Calvin Coolidge, 30th President of the USA.
In Section
Seekers of Perl Wisdom
|
|