AmberThai has asked for the wisdom of the Perl Monks concerning the following question:
If you have something like :"abc clothes doing shopping at the .mall abc something doing shopping at the .mallabc" 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 +)(.*?)(\.mall.*)/; print {$out} "$before $after"; }
does not read the values :"abc abcabc" and after the explanations can someone tell me how could I do this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Working with files
by Corion (Patriarch) on Jan 18, 2016 at 12:10 UTC | |
by AmberThai (Initiate) on Jan 18, 2016 at 12:27 UTC | |
by Corion (Patriarch) on Jan 18, 2016 at 12:41 UTC |