Paul wrote: > Hi, all. > I was reading the perlsub docs and hit this speedbump: > > > NOTE: The behaviour of a "my" statement modified with a > statement modifier conditional or loop construct (e.g. "my > $x if ...") is undefined. The value of the "my" variable > may be "undef", any previously assigned value, or possibly > anything else. Don't rely on it. Future versions of perl > might do something different from the version of perl you > try it out on. Here be dragons. > > I failed to parse. > Could someone elaborate that, please? :) >
Perl is trying to tell you that statements like: my $x++ for(1..10); my $y = 1 if(1); might behave unpredictably in future version. what will be the value of $x and $y? you can try it and print their values out but don't be suprise that the behaviour will change in future version of Perl. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]