in reply to Re^5: reset particular variable
in thread reset particular variable

Sorry marshall, but you're confusing explicit return with implicit return, ie. x1 doesn't still print 5
sub fo { 5 } # implicit_return sub fox { 5; return } # explicit return print fo; print fox; __END__ 5
perldoc -f return

Replies are listed 'Best First'.
Re^7: reset particular variable
by Marshall (Canon) on Aug 21, 2009 at 15:09 UTC
    aside from the fact that your code doesn't work under -w and strict, your point is valid. I have amended my post above. Something is not right with my example. Well, stuff happens. Thanks for pointing this out!
      aside from the fact that your code doesn't work under -w and strict, your point is valid.

      Come come now, did I put strict/warnings in my 4 lines of code?