good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
'defined' functionby Anonymous Monk |
on Jun 13, 2003 at 10:36 UTC ( [id://265632]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am pushing certain elements of one array into another array but the program is struggling if/when these elements don't exist. I thought about using the defined function for this but wondered if there was a quick way to check for each element and then if it is defined, push it into the array.
Thanks ;->
Back to
Seekers of Perl Wisdom
|
|