Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Net Use issues

by jasonk (Parson)
on Feb 16, 2009 at 17:25 UTC ( #744146=note: print w/ replies, xml ) Need Help??


in reply to Net Use issues

You instruct the user to enter the ip addresses as 'xxx.xxx.xxx.xx, xxx.xxx.xxx.xxx' but then you split them just on ','. If the user follows your instructions, then all the ip addresses after the first one have a leading space, which means \\\\$ip\\ becomes \\\\ $ip\\, which fails, but you never find out if fails because (like everyone else said) you never check whether the commands succeeded or not.


www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!


Comment on Re: Net Use issues
Select or Download Code
Re^2: Net Use issues
by Lobus (Initiate) on Feb 18, 2009 at 02:42 UTC
    Thank you all for your help. I have remade the script using subs as suggested, additionally i have incorporated a trim sub to remove spaces.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2014-07-31 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls