in reply to Re: Reading from files
in thread Reading from files
and if you have something like :"abc clothes doing shopping at the .m abc something doing shopping at the .mabc" why does something like :
use warnings 'all'; use strict; use autodie; open my $input, '<', $ARGV[0]; open my $out, '>', $ARGV[1]; while (<$input>) { my ($before, $between, $after) = /(.*?.clothes|.something +)(.*?)(\.m.*)/; print {$out} "$before $after"; }
does not read the values :"abc abcabc" and after the explanations can you tell me how could I do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading from files
by choroba (Cardinal) on Jan 18, 2016 at 13:03 UTC |