Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: First post, file handle question

by AnomalousMonk (Abbot)
on Apr 18, 2013 at 11:23 UTC ( #1029323=note: print w/ replies, xml ) Need Help??


in reply to First post, file handle question

open (SKEL, "cat " . join (" ", @ARGV) . " |") || die "Could not open $ARGV[0].\n$usage";

Just a picky parenthetic note: If the special variable  $" retains its default value of a single space (see perlvar), the expression
    "cat " . join (" ", @ARGV) . " |"
is exactly equivalent to the much shorter and clearer expression
    "cat @ARGV |"
which, for some reason, the original author did not want (or know how) to use.


Comment on Re: First post, file handle question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (17)
As of 2015-07-07 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (92 votes), past polls