s2cuts has asked for the wisdom of the Perl Monks concerning the following question:
$results = $obj->waitfor($cmd); $break = hex '0a'; @return_lines = split ( $break, $results ); print @return_lines
< 0x000d0: 20 75 6e 6c 69 6d 69 74 65 64 20 20 20 30 0a 75 unlimi +ted 0.u < 0x000e0: 73 65 72 31 20 20 66 61 6c 73 65 20 67 65 6e 5f ser1 f +alse gen_ < 0x000f0: 75 73 65 72 20 67 65 6e 5f 75 73 65 72 20 75 73 user ge +n_user us < 0x00100: 65 72 31 40 67 6d 61 69 6c 2e 63 6f 6d 20 20 20 er1@gma +il.com < 0x00110: 75 73 65 72 31 20 20 20 20 20 20 75 6e 6c 69 6d user1 + unlim < 0x00120: 69 74 65 64 20 20 20 30 0a 0a 20 47 72 6f 75 70 ited +0.. Group
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching a hex value in a string...
by moritz (Cardinal) on Feb 27, 2008 at 10:40 UTC | |
|
Re: Matching a hex value in a string...
by ysth (Canon) on Feb 27, 2008 at 11:15 UTC | |
by moritz (Cardinal) on Feb 27, 2008 at 11:43 UTC | |
by ikegami (Patriarch) on Feb 27, 2008 at 12:13 UTC |