Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perl system function

by trizen (Hermit)
on Mar 07, 2012 at 01:23 UTC ( #958192=note: print w/ replies, xml ) Need Help??


in reply to perl system function

There is a newline character at the end of the device name.
This issue can be fixed by changing $device = <>; to chomp($device = <STDIN>);.

Replies are listed 'Best First'.
Re^2: perl system function
by ironside (Acolyte) on Mar 07, 2012 at 02:13 UTC

    That did the trick. Thank you very much for your help.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2016-06-30 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.