Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Myth busted: Shell isn't always faster than Perl

by VSarkiss (Monsignor)
on Dec 30, 2005 at 18:42 UTC ( #520043=note: print w/replies, xml ) Need Help??


in reply to Re: Myth busted: Shell isn't always faster than Perl
in thread Myth busted: Shell isn't always faster than Perl

Fore!

sub { unlink if -f }
:-)

Replies are listed 'Best First'.
Re^3: Myth busted: Shell isn't always faster than Perl
by jdporter (Canon) on Dec 31, 2005 at 17:32 UTC

    Yes, my reply originally looked like that; but as the OP said, you may want to do additional things, such as reporting.

    We're building the house of the future together.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://520043]
help
Chatterbox?
LanX thinks it is appropriate here :)
[Your Mother]: They would think so.
[jdporter]: ok, I need a recipe for piping lines "through" an external program which is itself a filter
[jdporter]: without using a tmp file
[1nickt]: tobyink perl -MTypes::Standard= is_Int -Mstrict -wE 'say 1 if is_Int 1.0'
[jdporter]: so that I can use the existing expand unix util. Otherwise, I'll probably use Text::Tabs.
[1nickt]: pryrt I guess I don;t really care if user 42 logs on as 42.0 ... more of an academic question at this point.
[LanX]: jdporter: open PIPE,'-|' ?
[LanX]: oh you want the result line by line?
[jdporter]: ok, LanX, then what?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2017-05-24 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?