good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: SNMP get request errorby ww (Archbishop) |
on Mar 22, 2014 at 18:32 UTC ( [id://1079398]=note: print w/replies, xml ) | Need Help?? |
"When I removed the "\" it works just fine. I can not exaclty (sic) understand the error or the reason...." The backslash "\" you removed was escaping the "@" sigil, identifying your variable. That prevented Perl from understanding what you wanted. Without getting into referencing and dereferencing, observe what happens with a simple array:
In other words, be alert to the different uses of the "\" and the "/". For your precise case (and you seem to have done most of your homework here), see:
Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
In Section
Seekers of Perl Wisdom
|
|