Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: the greedy diamond, or leggo my STDIN

by Moron (Curate)
on Jul 04, 2007 at 08:46 UTC ( #624845=note: print w/replies, xml ) Need Help??

in reply to the greedy diamond, or leggo my STDIN

or transfer the stream to arguments...
$ ls | xargs sillytest
#!/usr/bin/perl my @msg = join "\n", @ARGV; # continue normally - STDIN was not redirected by xargs
update: and if on a non-*nix platform, you can roll your own xargs easily enough:
#!/usr/bin/perl # XARGS.EXE v0.1 shift @ARGV; push @ARGV, <STDIN>; chomp @ARGV; exec join( ' '. @ARGV;

^M Free your mind!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624845]
[stevieb]: I'm checking some other versions. This is a little frightening
[pryrt]: Sorry, my bad: it was't done downloading when I did the sha1sum... now I match your 309ad... value
[stevieb]: I'll see how to get in touch with someone and advise that there's an issue. Thanks for helping me confiirm pryrt!
[pryrt]: also mismatches; but matches their sha1

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-03-29 21:04 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (353 votes). Check out past polls.