in reply to Re: Reading a run length encoded file in a buffering scenario
in thread Reading a run length encoded file in a buffering scenario
Which seems to work ok. But its cryptic as all get out! (And uses a feature that perlre says is "highly experimental")use re 'eval'; my $buffer = "\04perl\03awk\01C"; while ($buffer =~ /\G(.)((??{".{".ord($1)."}"}))/gs) { print ord($1),$2,"\n"; }
Yves / DeMerphq
---
Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)
|
|---|