in reply to Re^2: read multi lines of a file in perl
in thread read multi lines of a file in perl
print grep { !/process/ } <>;
perl <script>.pl <input>.txt
ksjhfk kfh
However this would just be each element for each line. If you wanted them grouped you need something more complex using assertions ( if you do it the inefficent way like i have )my @process = grep { !/process/ } <>;
{ local undef $/; print split /process \s \w+ (.+?) end \s process/xms, <>; }
|
|---|