Front page | perl.fwp |
Postings from March 2002
Re: TPR1 post-mortem
Thread Previous
|
Thread Next
From:
fun_with_perl
Date:
March 8, 2002 13:20
Subject:
Re: TPR1 post-mortem
Message ID:
a6b9sm$ejj$2@post.home.lunix
In article <20020308183056.GA23596@ruunat.phys.uu.nl>,
Eugene van der Pijll <E.C.vanderPijll@phys.uu.nl> writes:
> En op 08 maart 2002 sprak Marcelo E. Magallon:
>>
>> At some point I kept thinking about this in terms
>> of abcd -> abbccd -> xyz, where x=f(ab) and so on.
>>
>
> Me too. Did anyone else notice this:
>
> ~$ perl -le'$_="abcd";$,=",";print unpack"A2XA2XA2X",$_'
> ab,bc,cd
>
> However, I couldn't make anything out of this that was shorter than,
> say, 70 chars.
>
> Eugene
Also fun is this:
perl -wle '$_="abcde"; pos=1; print $& while /.\G./g'
ab
bc
cd
de
But I could build nothing useful with that (s/// does not restart)
Thread Previous
|
Thread Next