Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Reg Expby chrism01 (Friar) |
on May 27, 2008 at 07:20 UTC ( [id://688612]=note: print w/replies, xml ) | Need Help?? |
Actually, IFF (if and only if) there are only the 2 variations presented in the OP, you could just use a @arr=split(/ /,$test); ... and count the size of the array $size=scalar(@arr); if its 4, arr[2]is the OS, otherwise no OS was specified
In Section
Seekers of Perl Wisdom
|
|