Re: [Perl-unix-users] Incremental var names

2004-07-28 Thread $Bill Luebkert
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

[Perl-unix-users] determine array type

2004-07-28 Thread listmail
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

Re: [Perl-unix-users] Incremental var names

2004-07-28 Thread Kris Hoelzer
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

[Perl-unix-users] Incremental var names

2004-07-28 Thread Márcio Oliveira
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

Re: [Perl-unix-users] Simple question about split string

2004-07-28 Thread Márcio Oliveira
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: