Márcio Oliveira wrote:
> Hi All (again)!
>
>I have another question. How I can create a incremental var's name ?
>
> Ex:
>
>Read "n" numbers and create a var with the name terminate with the
> sequence number in a loop:
>
> $n = 4;
>
> while ($num ne $n) {
>
> create the "numbe
It appears that if I build an anonymous array with the following:
# DBI/DBD
while ($ary = $sth->fetchrow_arrayref) {
push @myarray, [ @{$rowdata} ];
}
then when using the following:
foreach my $line (@myarray) {
...
}
$line will iterate through
MArcio,
why you don't use an array ?
Or you can gereate them at runtime via "eval" ...
HTH
Kris
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Hi All (again)!
I have another question. How I can create a incremental var's name ?
Ex:
Read "n" numbers and create a var with the name terminate with the
sequence number in a loop:
$n = 4;
while ($num ne $n) {
create the "numbered var ";
$num++;
}
in this example, the pr
Thank´s to all!
I use the split solution to separate the string in parts.
Atenciosamente,
Márcio Oliveira
LPIC-1
Analista de Suporte Pleno.
Márcio Oliveira wrote:
> Hi all.
>
>I have a simple (I guess) question about spliting strings in perl.
>
>I need to split a string like this: