in reply to Getting exit code and status from useragent response obj

print "$res->code\:\t$res->status_line";

Method calls inside quotes won't be recognised as such. Instead:

print $res->code . ":\t" . $res->status_line;

Replies are listed 'Best First'.
Re^2: Getting exit code and status from useragent response obj
by sylph001 (Sexton) on Jun 10, 2015 at 13:34 UTC
    Thanks a lot for the quick response. Yes after move it out of the quotes, seems that works just fine! :)