To add to the answer(s) already given...
for ($i=1 ; $i<4 ;$i++){
print $sup($i);
}
is actually quite cumbersome, and very 'C'-ish... Let's make it more
Perl-ish...
for my $i (1..4){
print $i;
}
There is not need to have to deal with incrementing and checking conditions
in loops - Perl does this very nicely for us already...
brent
"Pacifico" <[EMAIL PROTECTED]>
Sent by: To:
<[EMAIL PROTECTED]>
beginners-return-51-Brent_Michalski=mastercard.co cc:
[EMAIL PROTECTED] Subject:
problem with variables
04/17/01 09:59 AM
i have this program:
$sup1='a';
$sup2='b';
$sup3='c';
for ($i=1 ; $i<4 ;$i++){
print $sup($i);
}
but give error, why???