From: "Dan Muey" <[EMAIL PROTECTED]> > Suppose I have a module: > > package MyConfig; > > use strict; > use warnings; > > use CGI qw(:standard); # or user_name or one then other if fail? > use DBI; > > use base 'Exporter'; > use Carp; > .... > > Now in the script I have > > #!/usr/bin/perl > > use MyConfig; > .. > > Will use strict and warnings still be in effect for the script?
No. > Will I be able to use CGI and DBI and Carp as if I had use statements > for them in my script or do I need to have use Module in the script > before or after the use MyConfig; ? 1) You will be able to do my $query = new CGI; because the module IS loaded. 2) You wount be able to call carp("some message"); because the carp() function was exported to the MyConfig package, not to package main. You would have to call it using either Carp::carp() or MyConfig::carp() Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]