in reply to Text Extraction
If that's not what you want, you will need to do a better job of describing your requirements. The code above is untested.#!/usr/bin/perl use strict; use warnings; my $file = $ARGV[0] or die "Usage: $0 <input_file>"; open(my $fh, '<', $file) or die "Unable to open '$file' for reading: $ +!"; while (<$fh>) { next if /^(?:\s|[:cntrl:])/ || /^$/; s/^\S+\s//; print; }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Text Extraction
by sonicscott9041 (Novice) on Jul 22, 2009 at 16:32 UTC |