Hi,
Can someone confirm what scope $_ is.
i.e.
if I call a sub with
the sub will have access to $_ array with elements indexed at 0,1,2 equaling a,b,c respectively.
but if in mySub1 I call another sub
Have I just trashed the $_ array for mySub1 as now indexes 0,1,2 equal 1,2,3 respectively?
thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
Can someone confirm what scope $_ is.
i.e.
if I call a sub with
Code:
mySub1(a,b,c);
the sub will have access to $_ array with elements indexed at 0,1,2 equaling a,b,c respectively.
but if in mySub1 I call another sub
Code:
mySub2(1,2,3);
Have I just trashed the $_ array for mySub1 as now indexes 0,1,2 equal 1,2,3 respectively?
thanks
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts