Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re^3: use strict;,$main::, and AUTOLOAD: Why can't we all get along?

by hsmyers (Canon)
on Jul 18, 2002 at 13:39 UTC ( [id://182804]=note: print w/replies, xml ) Need Help??


in reply to Re^3: use strict;,$main::, and AUTOLOAD: Why can't we all get along?
in thread use strict;,$main::, and AUTOLOAD: Why can't we all get along?

The more I look at your first suggestion, the more I like it. I just counted, and there are only 13 locations where I in effect call a code reference. It would certainly be clearer to use the pragma and would act as a kind of documentation as well. As for the 'maker' idea, that isn't actually what I'm using AUTOLOAD for. It only acts as a stand in for code I haven't written yet. It allows me to 'run' without having to worry about the missing parts. The code in question is a compiler and the use of AUTOLOAD will go away in the production version.

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."
  • Comment on Re: Re^3: use strict;,$main::, and AUTOLOAD: Why can't we all get along?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found