in reply to Re: (jeffa) Re: 'print' puzzle
in thread 'print' puzzle
Which errors out with:#!/usr/bin/perl -wT use strict; package main; print Mymod::mysub (); package Mymod; sub mysub { '123' }
Interestingly enough, if you swap the two stanzas (move lines 7,8 above 4,5) the error disappears.
A similiar (but not identical) issue was discussed at Filehandles vs. Packages: And the winner is...
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (jeffa) Re: 'print' puzzle
by John M. Dlugosz (Monsignor) on Nov 13, 2001 at 03:14 UTC | |
by chromatic (Archbishop) on Nov 13, 2001 at 06:01 UTC | |
by John M. Dlugosz (Monsignor) on Nov 13, 2001 at 09:14 UTC | |
by blakem (Monsignor) on Nov 13, 2001 at 03:45 UTC |