in reply to Reading a run length encoded file in a buffering scenario
I tried the following but the assignment of $1 or \1 didn't have an effect.my $buffer = "\04perl\03awk\01C"; my @a = $buffer =~ /(.)(.{ord \1})/g;
use re 'eval'; my $buffer = "\04perl\03awk\01C"; my @a = $buffer =~ /(.)(?{$len = ord $1})(.{$len})/g;
Anyone have any ideas about how this could be made to work?
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading a run length encoded file in a buffering scenario
by demerphq (Chancellor) on Aug 15, 2002 at 08:45 UTC |