It seems to do the right think you want (notice the windows quotation..):package FirmaTest { print "welcome to FirmaTest\n"; sub import { use feature (); feature->import ('say'); } use strict; #strictures are imported # while warnings are not #use warnings; seems not enough.. $^W=1; # but setting $^W seems ok! $ENV{'FirmaTest'} = 1;#it works use POSIX qw (strftime); } 1;
HtHperl -MFirmaTest -e " print qq(warnings: $^W\n); print qq(ENV: $ENV{'F +irmaTest'}\n); say qw(saying: aa) my $str = POSIX::strftime( '%B %d, %Y',0, 0, 0, 12, 11, 115, 2 );say +qq(POSIX::strftime: $str) " #output: welcome to FirmaTest warnings: 1 ENV: 1 saying:aa POSIX::strftime: dicembre 12, 2015
In reply to Re^3: How to export several modules intu users name space to not have a use ...; use ...; use ...; with the same modules all over again
by Discipulus
in thread How to export several modules intu users name space to not have a use ...; use ...; use ...; with the same modules all over again
by bigj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |