in reply to Re^2: Cross-namespace problem with lvalue subs? Want?
in thread Cross-namespace problem with lvalue subs? Want?

You could try putting "package Xmas;" on the line before __DATA__ - seems to work for changing which package the DATA filehandle appears in.

Of course, the other admonition is to not have multiple packages in a single file - it confuses us mere mortals when convention is broken like that. ;-)

  • Comment on Re^3: Cross-namespace problem with lvalue subs? Want?

Replies are listed 'Best First'.
Re^4: Cross-namespace problem with lvalue subs? Want?
by belg4mit (Prior) on Dec 22, 2005 at 18:24 UTC
    I dunno about *convention* (lots of modules do it, and very convenient for protoyping/writing demonstration code) but is against TheDamian's best practices.

    --
    In Bob We Trust, All Others Bring Data.