Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Simple autoflush module

by robobunny (Friar)
on Aug 12, 2002 at 22:16 UTC ( [id://189657]=note: print w/replies, xml ) Need Help??


in reply to Simple autoflush module

you could save yet more keystrokes by making a small wrapper script.
#!/usr/bin/perl $cmd = join(';', @ARGV); system(qq{/usr/bin/perl -ne'\$|=1;$cmd'});
then name it something like 'nperl' and all you have to do is:
echo "werd up" | nperl s/e/o/g print
word up

Replies are listed 'Best First'.
Re: Re: Simple autoflush module
by RMGir (Prior) on Aug 12, 2002 at 23:34 UTC
    Nice one, thanks!

    My 1-liners tend to be a bit more complex than this would handle (in fact, they're often 2 and 1/2 liners:), but that'd be very handy for the short cases.
    --
    Mike

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found