> -----Original Message-----
> From: West, William M [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 23, 2003 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: scope of variable carrying 'for ($n1..$n2){}'
> 
> 
> for (1..19){
> for (1..19){
>       print $_
> }}
> 
> prints out the numbers 1 to 19 nineteen times...
> 
> 
> just curious how to access the outer forloop's variable from
> inside....
> 


for my $a ('a'..'e') {
  for my $b (1..5) {
    print "$a : $b\n";
  }
}



> 
> 
> 
> 
> willy
> http://www.hackswell.com/corenth 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to