in reply to Split string into array

my @printers = ($VAR1 =~ m{^ (\S+) }gmx);

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Split string into array
by Anonymous Monk on Dec 14, 2011 at 15:01 UTC
    thanks, works perfectly.