On Sun, 02 Feb 2003 18:58:49 -0500, Wiggins D'Anconia wrote:
> Konrad Foerstner wrote:
> while () {
>if (/^#/) {
> # start new array element
> push @array, $_;
>}
>else {
> # append to last array element
> $array[$#array] .= $_;
Or simpler
$array[-1]
Konrad Foerstner wrote:
> Hi folks,
>
> an new question about the mystery of regexs:
>
> I want to store some parts of a file wich are separetet by "#". Each
> each part should become an entry of an array. example:
>
> "
> # foobar
> nothing important
> nothing interesting
> # bar foot
> lululul
>
Wiggins d'Anconia wrote:
>
> Konrad Foerstner wrote:
> > Hi folks,
> >
> > an new question about the mystery of regexs:
> >
> > I want to store some parts of a file wich are separetet by "#". Each each
> > part should become an entry of an array. example:
> >
> > "
> > # foobar
> > nothing importa
Konrad Foerstner wrote:
Hi folks,
an new question about the mystery of regexs:
I want to store some parts of a file wich are separetet by "#". Each each
part should become an entry of an array. example:
"
# foobar
nothing important
nothing interesting
# bar foot
lululul
lalala
lalala
# foobar2
Hi folks,
an new question about the mystery of regexs:
I want to store some parts of a file wich are separetet by "#". Each each
part should become an entry of an array. example:
"
# foobar
nothing important
nothing interesting
# bar foot
lululul
lalala
lalala
# foobar2
Rumba-Samba-Tango
"
(oka