in reply to Re: non-global $/
in thread non-global $/

Nope. my() doesn't care about packages.

use strict; my $x = 5; print "\$x in main package=$x\n"; package other; print "\$x in other package=$x\n";

Jenda
XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented.

Replies are listed 'Best First'.
Re^3: non-global $/
by Ultra (Hermit) on Jun 23, 2005 at 06:43 UTC
    Indeed, but in his context, my would be more suited.

    Update: Thanks monkey_boy for pointing me that Can't use global $/ in "my"
    Dodge This!

      my $/ = 'Foo';

      Wont compile:
      Can't use global $/ in "my"


      This is not a Signature...