RE: How to use the arguments to use() in the package being used

2004-02-05 Thread Dan Muey
> Dan Muey wrote: > > > > > > > But did you perldoc? Munging source may sometimes be useful, > > > > Shamefully, no :( > > I usually do but this time I was just backwards! > > Cool. I'm afraid I sent the response before I noticed the > signature. I know that you know better (;-o) Thanks for

Re: How to use the arguments to use() in the package being used

2004-02-05 Thread R. Joseph Newton
Dan Muey wrote: > > > > But did you perldoc? Munging source may sometimes be useful, > > Shamefully, no :( > I usually do but this time I was just backwards! Cool. I'm afraid I sent the response before I noticed the signature. I know that you know better (;-o) Joseph -- To unsubscribe, e-m

RE: How to use the arguments to use() in the package being used

2004-02-05 Thread Dan Muey
> Dan Muey wrote: > > > Howdy, > > The subject says it all believe it or not :) > > > > What I'm trying to figure out is how to pass an argument (pragma I > > believe is the proper term) to use() and do sonethign in > the package > > based on it. > > > > I've looked at CGI.pm source but can't s

Re: How to use the arguments to use() in the package being used

2004-02-05 Thread R. Joseph Newton
Dan Muey wrote: > Howdy, > The subject says it all believe it or not :) > > What I'm trying to figure out is how to pass an argument > (pragma I believe is the proper term) to use() and do > sonethign in the package based on it. > > I've looked at CGI.pm source but can't seem to track it down. Bu

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Rob Dixon said: >That's an interesting point Jeff. You're right that it's > > Module->import() > >instead of > > Module::import() > >as 'import' will be inherited in the (common) case that >Module ISA Exporter. And also, 'Module' is sent as the first arg to import(). -- Jeff "japhy" P

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > > When you say > > use Module qw( args go here ); > > this is translated into > > BEGIN { > require Module; > Module->import(qw( args go here )); > } That's an interesting point Jeff. You're right that it's Module->import() instead of Module::import(

RE: How to use the arguments to use() in the package being used

2004-02-04 Thread Dan Muey
> On Feb 4, Dan Muey said: > > ># for old time's sake we'll just use our favorite module > >use Foo::Monkey qw(:Foo :Bar -doamazingthings); > > Well, depending on what you want to do with the arguments, > you might want to use the Exporter module to handle exporting > functions, variables, etc.

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Randal L. Schwartz
> "Dan" == Dan Muey <[EMAIL PROTECTED]> writes: Dan> What I'm trying to figure out is how to pass an argument Dan> (pragma I believe is the proper term) to use() and do Dan> sonethign in the package based on it. $ perldoc -f use [...] Imports some semantics into the current pac

Re: How to use the arguments to use() in the package being used

2004-02-04 Thread Jeff 'japhy' Pinyan
On Feb 4, Dan Muey said: ># for old time's sake we'll just use our favorite module >use Foo::Monkey qw(:Foo :Bar -doamazingthings); Well, depending on what you want to do with the arguments, you might want to use the Exporter module to handle exporting functions, variables, etc. perldoc perlmo