itub has asked for the wisdom of the Perl Monks concerning the following question:
my $package = $pathname; $package =~ s/\//::/g; $package =~ s/\.\w+$//;
and it works for me. But what if I want to make sure it's really portable? After reading perlport, I feel intimidated, but I'm sure that someone has faced this problem before. Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Turning pathname into package name in a portable way
by idsfa (Vicar) on Oct 15, 2005 at 20:46 UTC | |
by itub (Priest) on Oct 15, 2005 at 22:30 UTC | |
by EvanCarroll (Chaplain) on Oct 15, 2005 at 23:06 UTC |