Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Need a second set of eyes: Very odd failure

by RMGir (Prior)
on Nov 17, 2017 at 19:35 UTC ( [id://1203702]=note: print w/replies, xml ) Need Help??


in reply to Need a second set of eyes: Very odd failure

Aside from the bless issue everyone else spotted (but I would have TOTALLY missed), isn't there something strange going on here?
our $curl="/usr/bin/curl -G 'http://localhost:8080/v3"; # ... sub getHosts { my $self = shift; my $cmd=sprintf("%s/nodes 2>/dev/null",$curl);
Aren't you going to wind up with a mismatched single quote in $cmd if 'getHosts' gets called? 'getHostsFacts' does it right, it looks like...

Mike

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found