I get the error message: "Variable length lookbehind not implemented in regex". What is it you want the regex to do? Maybe there's a different way to do it.
Also, you should "use strict; use warnings;" and indentation is good for the soul. And here's a more perlish way to process a file line-by line without loading it all into memory first, using the safer three-argument open with error-checking:
open my $fh, '<', 'hostdata.txt' or die $!; while( my $hdb2 = <$fh> ){ # do stuff with $hdb2 } close $fh;
Aaron B.
Available for small or large Perl jobs; see my home node.
In reply to Re: Multiple Rows
by aaron_baugher
in thread Multiple Rows
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |