neversaint has asked for the wisdom of the Perl Monks concerning the following question:
But somehow File::Basename fail to recognize the "basename" function. By giving:use File::Basename; my $gds_file = "data/myfile.soft"; my $base = basename($gds_file,".soft");
Although my code apparently can identify the path location of File::Basename library. Since 1) It has no path error message after execution and 2) perldoc File::Basename can show the content.$ perl mycode.pl Undefined subroutine &main::basename called at mycode.pl line 3.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Basename Can't Recognize its Function in Darwin/MacOS Leopard
by graff (Chancellor) on Jun 18, 2008 at 05:25 UTC | |
|
Re: File::Basename Can't Recognize its Function in Darwin/MacOS Leopard
by grinder (Bishop) on Jun 18, 2008 at 06:13 UTC | |
|
Re: File::Basename Can't Recognize its Function in Darwin/MacOS Leopard
by Anonymous Monk on Jun 18, 2008 at 06:12 UTC | |
|
Re: File::Basename Can't Recognize its Function in Darwin/MacOS Leopard
by rovf (Priest) on Jun 18, 2008 at 10:32 UTC |