in reply to Re: special pattern reading
in thread special pattern reading
Why is my version not working?
use strict; use warnings; { my $input = do { open my $in, '<', '1.txt'; local $/; <$in> }; until ( eof $in){ my $file = <$in>; $file =~ s/..![^!]*something.*\.c//; print $file . "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: special pattern reading
by hippo (Archbishop) on Jan 13, 2016 at 10:32 UTC |