Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Simple autoflush module

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 19: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.