Perl Monk, Perl Meditation | |
PerlMonks |
while loop break when sub callby papillon (Initiate) |
on Jan 09, 2015 at 14:54 UTC ( [id://1112755]=perlquestion: print w/replies, xml ) | Need Help?? |
papillon has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm calling a sub inside a while loop and it break the $_ from getgrent. I tried to used local($_) before calling the sub but to no avail.
the while loop execute correctly until it reach a $name that start with sometext_. At that point, the while loop just repeat the over the same group and never exit. Is there a way to let getgrent continue where it was? Thanks, Mélanie
Back to
Seekers of Perl Wisdom
|
|