RE: use strict and lib vars

2003-02-18 Thread Paul
> So seems the concensus. I will be trying to adapt a module type > system for it. Feel free to post for assistance. We learn more that way, lol ;o] __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com

RE: use strict and lib vars

2003-02-18 Thread Dan Muey
Thanks! I 'll give her a go that route. I like the idea just need time to do it then polish it up. Thanks Dan > > > Well, any other ideas on how I can have a hundred scripts > all use the > > same settings and make it easy to change any of them at > will without > > having to go edit a hun

RE: use strict and lib vars

2003-02-18 Thread Dan Muey
So seems the concensus. I will be trying to adapt a module type system for it. Thanks Dan > Dan Muey wrote: > > > > > To share configuration variables in one place for lots and lots of > > scripts to use instead of having to put them in each script > and then > > on echanges and having to g

RE: use strict and lib vars

2003-02-17 Thread Paul
> Well, any other ideas on how I can have a hundred scripts all use the > same settings and make it easy to change any of them at will without > having to go edit a hundred files would be nice. > ... > To share configuration variables in one place for lots and lots of > scripts to use instead of h

Re: use strict and lib vars

2003-02-17 Thread R. Joseph Newton
Dan Muey wrote: > > To share configuration variables in one place for lots and lots of scripts to use >instead of having to put them in each script and then on echanges and having to go >through a hundred scripts all over the place to change them. > > Someone else already helped me get it nailed

RE: use strict and lib vars

2003-02-17 Thread Dan Muey
> > Dan Muey wrote: > > > I guess my main question would boil down to :: > > > > How can I use variables that get declared in a lib file in a script > > that uses -w and use strict; ? > > > > A more complex example of what I've tried and what I'm > trying to get > > is here :: > > > > On the

Re: use strict and lib vars

2003-02-17 Thread R. Joseph Newton
Dan Muey wrote: > I guess my main question would boil down to :: > > How can I use variables that get declared in a lib file in a script that uses -w and >use strict; ? > > A more complex example of what I've tried and what I'm trying to get is here :: > > On the script below, when use strict is

RE: use strict and lib vars

2003-02-17 Thread Paul
> > > > use vars '$dog'; > > > Personally, because I like typing 2 letters instead of 7. :) > > Ok then if your Perl (>5.6.0) allows it, change the above to: > > our $dog; > > perldoc vars > perldoc -f our > > Save 7 more characters... ;-) lol -- sweet. I'm still trying to get used to our().

RE: use strict and lib vars

2003-02-17 Thread wiggins
On Mon, 17 Feb 2003 11:45:15 -0800 (PST), Paul <[EMAIL PROTECTED]> wrote: > > > --- Dan Muey <[EMAIL PROTECTED]> wrote: > > > use vars '$dog'; > Personally, because I like typing 2 letters instead of 7. :) > Ok then if your Perl (>5.6.0) allows

RE: use strict and lib vars

2003-02-17 Thread Dan Muey
Right on thanks! > > > > --- Dan Muey <[EMAIL PROTECTED]> wrote: > > > > #!/usr/bin/perl -w > > > > use strict; > > > > #my $dog = 'bart'; > > > > eval { > > > > use lib '/home/dmuey'; > > > > require "lib.lib"; > > > > }; > > > > print "Content-type: text/html\n\n"; > > > > prin

RE: use strict and lib vars

2003-02-17 Thread Paul
> > --- Dan Muey <[EMAIL PROTECTED]> wrote: > > > #!/usr/bin/perl -w > > > use strict; > > > #my $dog = 'bart'; > > > eval { > > > use lib '/home/dmuey'; > > > require "lib.lib"; > > > }; > > > print "Content-type: text/html\n\n"; > > > print "Error: $@ :: $dog ::\n"; > > > > > > :

RE: use strict and lib vars

2003-02-17 Thread Dan Muey
> > --- Dan Muey <[EMAIL PROTECTED]> wrote: > > #!/usr/bin/perl -w > > use strict; > > #my $dog = 'bart'; > > eval { > > use lib '/home/dmuey'; > > require "lib.lib"; > > }; > > print "Content-type: text/html\n\n"; > > print "Error: $@ :: $dog ::\n"; > > > > :: lib.lib file is ::

Re: use strict and lib vars

2003-02-17 Thread Paul
--- Dan Muey <[EMAIL PROTECTED]> wrote: > #!/usr/bin/perl -w > use strict; > #my $dog = 'bart'; > eval { > use lib '/home/dmuey'; > require "lib.lib"; > }; > print "Content-type: text/html\n\n"; > print "Error: $@ :: $dog ::\n"; > > :: lib.lib file is :: > > my $dog = 'joe'; > 1;