Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Reg Exp

by chrism01 (Friar)
on May 27, 2008 at 07:20 UTC ( [id://688612]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reg Exp
in thread Reg Exp

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://688612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found