in reply to multi-line (string doc) parsing
use strict; while(<DATA>){ if($_ =~ /^\s+(\S+)\s+(\S+)\s+(.+)\s+$/){ print "$1\t$2\t$3\t\n"; } } __DATA__ Sharename Type Comment --------- ---- ------- IPC$ IPC Remote IPC Server Comment --------- ------- STUFF Stuff
|
|---|