Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
will 'i' automatically be set to zero and incremented from there or do I have to say my $i=0; Is it a similar case with the ".=" on non-intialized vars?my $i; while ($i<5) { $i++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Intialization
by swiftone (Curate) on Jan 17, 2001 at 02:10 UTC | |
|
Re: Intialization
by Fastolfe (Vicar) on Jan 17, 2001 at 02:12 UTC | |
|
Re: Intialization
by btrott (Parson) on Jan 17, 2001 at 02:14 UTC | |
|
Re (tilly) 1: Intialization
by tilly (Archbishop) on Jan 18, 2001 at 06:57 UTC | |
|
Re: Intialization
by Beatnik (Parson) on Jan 17, 2001 at 02:35 UTC |