|Pathologically Eclectic Rubbish Lister|
Remove empty element.by vinoth.ree (Parson)
|on Jul 14, 2009 at 05:09 UTC||Need Help??|
vinoth.ree has asked for the
wisdom of the Perl Monks concerning the following question:
In the above code I split the string using the separators , So I got the output in the @var array as follows.
As I know that I get the empty element at first because it matches the first character of $var matched the regular expressions. I do not want this empty element in the @var array.
I did the following to avoid the empty element as
Do you have any better idea to avoid the empty element ?Update