http://qs321.pair.com?node_id=943485


in reply to Module for accessing samba smbclient command

I don't see a CPAN module offhand, but you might consider a simple-minded approach. What happens if you try

my $output = qx{smbclient -L}; say $output;

Replies are listed 'Best First'.
Re^2: Module for accessing samba smbclient command
by Anonymous Monk on Dec 14, 2011 at 13:19 UTC
    Thank you. I've got the results in a variable. Here is how it prints with DataDumper:
    $VAR1 = 'Printer1 Printer Printer 1 Printer2 Printer Printer 2 Store Printer Store printer ';
    How can I create an array containing just the printer names (col 1)?