in reply to Re^2: text matching
in thread text matching
Hmmm. Can you show how you are running it? This is how my complete code looked:
#!/usr/bin/env perl use strict; use warnings; open my $in, "<", shift; while( my $line = <$in> ) { $line =~ s/ .* report s? .* ; .* //sx; print $line; }
Be sure to put the name of the report file as an argument on the CL. Also, which operating system are you using?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: text matching
by prassi (Acolyte) on Jun 16, 2012 at 06:54 UTC | |
by frozenwithjoy (Priest) on Jun 16, 2012 at 07:09 UTC | |
by prassi (Acolyte) on Jun 16, 2012 at 07:20 UTC | |
by frozenwithjoy (Priest) on Jun 16, 2012 at 07:58 UTC | |
by prassi (Acolyte) on Jun 16, 2012 at 14:02 UTC | |
by Anonymous Monk on Jun 16, 2012 at 07:27 UTC | |
by frozenwithjoy (Priest) on Jun 16, 2012 at 07:34 UTC | |
by Cristoforo (Curate) on Jun 17, 2012 at 01:13 UTC |