Yes, that change (adding "use File::Basename") corrects the error. I'm simply not fully understanding the distinction between implementing File::Basename and File::Spec, as presented by the text. Thanks!
They're just two modules with different albeit somewhat related functionality. What do you mean with "implementing" anyway? BTW: you have a special and convenient shortcut to make the name of a module into a clickable link, if you like. Just write [mod://File::Basename] and it will render like File::Basename.
In reply to Re^3: Script using File::Spec fails...
by blazar
in thread Script using File::Spec fails...
by cgmd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |