in reply to Disable the printing of printable and control characters with Net::SNMP (was: SNMP)
should do it. The coding style is pretty hard to get through (and you can get some pointers from the monks here if you'd like), but one thing that stands out is that you open "OUT" twice, without closing it.my @bin = unpack 'C*', $a; $a = ''; for (@bin) { $a .= sprintf ' 0x%02x', $_; }
Update: Woops, fixed unpack spec.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Disable the printing of printable and control characters with Net::SNMP (was: SNMP)
by michaelW (Initiate) on Aug 03, 2006 at 16:06 UTC |