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
In reply to Re: multi-line (string doc) parsing
by 2501
in thread multi-line (string doc) parsing
by LoneRanger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |