![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Fighting sub foo($;$$)by Sandy (Curate) |
on Apr 14, 2023 at 20:31 UTC ( [id://11151672]=perlquestion: print w/replies, xml ) | Need Help?? |
Sandy has asked for the wisdom of the Perl Monks concerning the following question: I am currently fighting with some legacy code (which I am embarrassed to say that I wrote myself) which cannot be changed. In this file, I have a code that is equivalent to: This works because I call foo before the subroutine is processed, so there were no flags years ago to fix it. Today, I need this function foo in another program, so I do this: And now this doesn't work because 'foo' is compiled before I call it. Is there any chance that I could tell perl to ignore my past foolishness, and just forget that there is '($:$$)'? Thanks, Sandy
Back to
Seekers of Perl Wisdom
|
|