Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Testing <>

by Anonymous Monk
on Oct 03, 2011 at 15:35 UTC ( #929366=note: print w/replies, xml ) Need Help??


in reply to Re: Testing <>
in thread Testing <>

That works for
/tmp/>echo "hello world\n" | myscript
and now called on its own doesn't hang
/tmp/>myscript
but there again its not clear how a usage message could be printed out.

But it now fails when passed a filename

/tmp/>cat x October 2011 S M Tu W Th F S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 /tmp/myscript x
it doesn't print the contents of the file :-( Isn't there a simpler solution? I thought that this would have a simple, forehead slapping, solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929366]
help
Chatterbox?
[LanX]: Happy 1e2th Birthday , Issur Danielowitsch Demsky! :)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2016-12-09 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (154 votes). Check out past polls.