http://www.perlmonks.org?node_id=1186049


in reply to oneliner: autorun script when I save it in the editor

Nice! The only small change I'd suggest is using system("perl",$f) (or even system($^X,$f)) instead of say `perl "$f"`, since the former will allow for live output (although you may still need $|=1; in the called script).

Replies are listed 'Best First'.
Re^2: oneliner: autorun script when I save it in the editor
by FreeBeerReekingMonk (Deacon) on Mar 27, 2017 at 20:19 UTC
    excellent idea. Hmm... seems to work without flushing...