Re: use confusion

2002-05-31 Thread Michael Fowler
On Fri, May 31, 2002 at 08:49:30AM -0400, Pete Emerson wrote: > The following example does what is expected, i.e. prints out the word > password on its own line. > > used.pm > --- > $password='password'; > > use.pl > -- > #!/usr/bin/perl > > require "./used.pm"; > print "$password\n"; >

Re: use confusion

2002-05-31 Thread Chas Owens
On Fri, 2002-05-31 at 09:05, Jonathan E. Paton wrote: > --- Pete Emerson <[EMAIL PROTECTED]> wrote: > > There is a hackish tendancy when referring to the 'use' keyword > to use the form: > > use confusion; > > why? Because it is Perl's way of loa

Re: use confusion

2002-05-31 Thread Jonathan E. Paton
--- Pete Emerson <[EMAIL PROTECTED]> wrote: There is a hackish tendancy when referring to the 'use' keyword to use the form: use confusion; why? Because it is Perl's way of loading modules - this would be a pragma (like strict and warnings). Of course, we need t

use confusion

2002-05-31 Thread Pete Emerson
The following example does what is expected, i.e. prints out the word password on its own line. used.pm --- $password='password'; use.pl -- #!/usr/bin/perl require "./used.pm"; print "$password\n"; However, as soon as I turn on warnings and strict, and declare $password: #!/usr/bin/per