in reply to Create output from Perl hash
$myline =~ /(<SUBBEGIN)(.*)(<SUBEND)/g;
You're reading the file line by line. Your sample input contains the SUBBEGIN and SUBEND markers on separate lines. Is it possible to have them on the same line?
It's unclear how one should get from the sample input to the expected output. Can you describe the algorithm? See also SSCCE.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Create output from Perl hash
by gbwien (Sexton) on Feb 13, 2018 at 10:53 UTC |