in reply to Re: 'or' Bug Bear
in thread 'or' Bug Bear

i think the "$" should indicate the perl-shell.

Update: because when you run the code with the "$" then you get
Variable "$fred" is not imported at ... (Did you mean &fred instead?) Global symbol "$fred" requires explicit package name at ... Execution of test.pl aborted due to compilation errors.
instead of the OPīs output.

Update: Ah. no. itīs the use strict in the wrong place that allows that "$fred". Above error only arises when you move the "use strict;" outside the subroutine. So in the OPīs code, the subroutine does not get called at all!!

holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: 'or' Bug Bear
by cog (Parson) on Feb 10, 2005 at 11:59 UTC
    I don't think so, because then the subroutine would have to be called somewhere. Plus, it seems by the rest of the post that the script name is "xxrcor.pl", and it seems that it is called from a bash or something similar.

    But it makes sense, it could be...