At 11:44 pm +0100 19/03/01, Bart Lateur wrote: >Damn, you guys beat me to it. Ok, here's how I would have done it. Note >that the functionality is the same. Oh, but it was worth waiting for: it is so elegant: > (my $data, $_) = unpack "x8a${len}x@{[$len & 1]}a*", $_; The "even/uneven" solution in_line with "x@{[$len &1]}" is simply exquisite. Alan Fry
- Re: [MacPerl] StyledText data into a record of text ... John W Baxter
- Re: [MacPerl] StyledText data into a record of text and s... Nobumi Iyanaga
- Re: [MacPerl] StyledText data into a record of text ... Gero Herrmann
- Re: [MacPerl] StyledText data into a record of text and s... Bart Lateur
- Re: [MacPerl] StyledText data into a record of text ... Nobumi Iyanaga
- Re: [MacPerl] StyledText data into a record of text ... John W Baxter
- Re: [MacPerl] StyledText data into a record of text and s... Ronald J Kimball
- Re: [MacPerl] StyledText data into a record of text and s... Alan Fry
- Re: [MacPerl] StyledText data into a record of text and s... Ronald J Kimball
- Re: [MacPerl] StyledText data into a record of text and s... Bart Lateur
- Re: [MacPerl] StyledText data into a record of text and s... Alan Fry
- [MacPerl] How to generate StyledText data and "... Nobumi Iyanaga