in reply to Re: In-place search and replace confined to a specific column
in thread In-place search and replace confined to a specific column

Brava Eily!

never tought to use -MO=Deparse to inspect a oneliner! this trick push me even more up in the dark oneliner side of the source..

Anyway -p seems to superseed -n in both order, results are equal:

perl -MO=Deparse -p -n -e 1 LINE: while (defined($_ = <ARGV>)) { '???'; } continue { die "-p destination: $!\n" unless print $_; } -e syntax OK perl -MO=Deparse -n -p -e 1 LINE: while (defined($_ = <ARGV>)) { '???'; } continue { die "-p destination: $!\n" unless print $_; } -e syntax OK'

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.