Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: using split

by smokemachine (Hermit)
on Nov 17, 2006 at 11:42 UTC ( [id://584711] : note . print w/replies, xml ) Need Help??


in reply to using split

dont use split use this
perl -e 'my $blah = "reagen OR siedl OR smith AND jack"; @names = spli +t /\s+( AND|OR)\s+/, $blah; @split_values = $blah =~ /\s+(AND|OR)\s+/g'