good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Determine new line number in revised file given old line numberby shmem (Chancellor) |
on Mar 29, 2017 at 19:31 UTC ( [id://1186426]=note: print w/replies, xml ) | Need Help?? |
syntax error at 1186417.pl line 33, near "$1 :"
patch:
It seems a little convoluted. For starters, to remove a bit convolutedness, I'd drop that ternary constructs and rewrite that line as
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|