Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: oneliner: autorun script when I save it in the editor

by haukex (Chancellor)
on Mar 27, 2017 at 07:59 UTC ( #1186049=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1186049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2019-12-13 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?