J
justme
hi
i have a while loop inside a sub
sub 1 {
while(1)
{
# declaring of variables, arrays, hashes
last if somecondition
}
}#end sub
Firstly, when the loop encounters last command, will perl take care of
clearing
all the variables, arrays, hashes that was declared in the while loop?
will the subroutine clear that for me? or do i have to include "undef"
just before the sub returns? If I need to include undef , how do i
clear everything at once ??
thanks for any help
i have a while loop inside a sub
sub 1 {
while(1)
{
# declaring of variables, arrays, hashes
last if somecondition
}
}#end sub
Firstly, when the loop encounters last command, will perl take care of
clearing
all the variables, arrays, hashes that was declared in the while loop?
will the subroutine clear that for me? or do i have to include "undef"
just before the sub returns? If I need to include undef , how do i
clear everything at once ??
thanks for any help