in reply to How much was unpack()ed?
Unforunately Z* doesn't finish at the zero byte - it actually consumes the remainder of the input and discards everything beyond the zero.(my($t),$foo) = unpack('Ca*', $foo); if ( $t == 3 ) { ($v,$foo) = unpack('Z*a*', $foo); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How much was unpack()ed?
by BrowserUk (Patriarch) on May 21, 2004 at 17:33 UTC | |
|
Re: Re: How much was unpack()ed?
by ambrus (Abbot) on May 22, 2004 at 12:12 UTC |