Re: Use and Require

2004-01-31 Thread Wiggins d'Anconia
Robert wrote: Wiggins D Anconia wrote: Mallik wrote: What is the difference between Use and Require. See perldoc -f use perldoc -f require Why do you ask? /R Wow such a civilized answer. Some would say... S R Q I R E This is such a nice list. Time to revisit: http://www.catb.org/~es

Re: Use and Require

2004-01-31 Thread Robert
Wiggins D Anconia wrote: Mallik wrote: What is the difference between Use and Require. See perldoc -f use perldoc -f require Why do you ask? /R Wow such a civilized answer. Some would say... S R Q I R E This is such a nice list. Time to revisit: http://www.catb.org/~esr/faqs/smart-qu

Re: Use and Require

2004-01-30 Thread mcdavis941
[.. old posts snipped ..] One important difference between 'use' and 'require' has to do with allowing your program to decide whether to include it or not. You CAN put 'require' inside an if statement, and it will only be executed if the if condition is true, allowing your program to decide whe

Re: Use and Require

2004-01-30 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mallik) writes: >Dear Perl Gurus, > >What is the difference between Use and Require. use Foo; is equivalent to: BEGIN { require Foo; Foo->import; } -- Peter Scott http://www.perldebugged

Re: Use and Require

2004-01-30 Thread drieux
On Jan 29, 2004, at 9:57 AM, Mallik wrote: [..] What is the difference between Use and Require. [..] The easiest way to think about it was that once upon a time we wanted to have 'functions' that would be in 'perl libraries' - so there needed to be a directive that indicated that the code 'require

Re: Use and Require

2004-01-29 Thread wolf blaum
For Quality purpouses, Mallik 's mail on Thursday 29 January 2004 18:57 may have been monitored or recorded as: > Dear Perl Gurus, that must be someone else > > What is the difference between Use and Require. > try perldoc -f use on your box (or www.perldoc.com): use Module VERSION LIST

Re: Use and Require

2004-01-29 Thread Jan Eden
Mallik, I think I am just two to three weeks ahead of you in the learning curve. But what I know, I learned from O'Reilly's "Learning Perl", "Learning Perl References, Objects and Modules" and from checking "Programming Perl" from time to time. The "Perl Cookbook" is great for finding real life

RE: Use and Require

2004-01-29 Thread Dan Muey
> > Mallik wrote: > > > > > > What is the difference between Use and Require. > > > > See > > > > perldoc -f use > > perldoc -f require > > > > Why do you ask? > > > > /R > > > > > > Wow such a civilized answer. Some would say... > > S R Q I R E Who is Senior Qire? > > This is such a

Re: Use and Require

2004-01-29 Thread Wiggins d Anconia
> Mallik wrote: > > > > What is the difference between Use and Require. > > See > > perldoc -f use > perldoc -f require > > Why do you ask? > > /R > > Wow such a civilized answer. Some would say... S R Q I R E This is such a nice list. Time to revisit: http://www.catb.org/~esr/faqs/s

Re: Use and Require

2004-01-29 Thread Rob Dixon
Mallik wrote: > > What is the difference between Use and Require. See perldoc -f use perldoc -f require Why do you ask? /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: 'use' and 'require'

2003-08-04 Thread Allison, Jason (JALLISON)
ssage- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:09 PM To: 'Allison, Jason (JALLISON)'; '[EMAIL PROTECTED]' Subject: RE: 'use' and 'require' Allison, Jason (JALLISON) wrote: > Hello all, > > Is there a way t

RE: 'use' and 'require'

2003-08-04 Thread Bob Showalter
Allison, Jason (JALLISON) wrote: > Hello all, > > Is there a way to 'variablize' the version for a 'use' statement. > This way, if I wanted to change version I could only change it in one > place with those changes cascading across all apps. Where would that "one place" be? Wherever that is, put

RE: use and require

2003-01-23 Thread Beau E. Cox
Hi Rob - > -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:20 AM > To: [EMAIL PROTECTED] > Subject: Re: use and require > > > Beau E. Cox wrote: > > Hi - > > > > I thought I had a grip on th

Re: use and require

2003-01-23 Thread Rob Dixon
Beau E. Cox wrote: > Hi - > > I thought I had a grip on this, but... > > Most of my reading (Camel, perldocs, etc) suggest that > 'require Foo::Bar' should be used instead of 'use Foo::Bar' within > modules. I am in the process of building a series of > modules for a project and am having problems