in reply to Re^2: Module for accessing samba smbclient commandin thread Module for accessing samba smbclient command
my @printers = $VAR1 =~ /^(\S+)/mg; [download]
See Matching in list context in perlop.