P is for Practical | |
PerlMonks |
Re: Array splittingby Kenosis (Priest) |
on Oct 31, 2012 at 21:42 UTC ( [id://1001749]=note: print w/replies, xml ) | Need Help?? |
You need to use eq not ==,as the latter's used for numeric comparisons:
Output:
Another option is to use a regex to check the beginning character:
Also, consider doing the following for your print statements:
In Section
Seekers of Perl Wisdom
|
|