in reply to File::Basename Can't Recognize its Function in Darwin/MacOS Leopard
For some reason the import() routine is not being run, and so the function is not injected into your namespace.
As a simple matter of code hygiene, you could explicitly state what you want exported from File::Basename: use File::Basename 'basename';
And who knows, it might fix your problem. If it still fails to work, does the following work?
my $base = File::Basename::basename($gds_file,".soft");
If that still fails to work, does perldoc -m File::Basename show you something that resembles the code of the module itself?
• another intruder with the mooring in the heart of the Perl
|
|---|