EchoAngel has asked for the wisdom of the Perl Monks concerning the following question:
For some reason, it doesn't work always. For example my output:foreach $line (@DataFromBatchFile) { chomp($line); print "B |$line|\n"; #$HASHDATAFROMBATCHFILE{$counter}; if ($line =~ m/-(.*) ["]*([\)\(A-Za-z0-9,\.\*]*)\s*["]*\s*/) { print "$counter $1 $2\n"; $HASHDATAFROMBATCHFILE{$counter}{$1} = $2; } if ($line =~ m/\bEND\b/) { $counter ++; } }
what's wrong with the quotes extraction since i don't want them there.B | -libs "source*.lib" | 1 libs "source*.lib" B | -1dlu | 1 1dlu B | -2dlu | 1 2dlu B | -3dlu "(1,1,3)"| 1 3dlu (1,1,3) B | -filter ASDF| 1 filter ASDF B |END|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text Extraction Problems
by ikegami (Patriarch) on Oct 06, 2004 at 17:39 UTC | |
|
Re: Text Extraction Problems
by Sandy (Curate) on Oct 06, 2004 at 17:27 UTC | |
|
Re: Text Extraction Problems
by Roger (Parson) on Oct 07, 2004 at 13:38 UTC |