Zentara wrote: > > Hi, Hello,
> I've been playing with File::Basename and > the docs are not absolutely clear on whether > you can get an extension on a linux system. > I have had no success trying, so does this mean > that linux is not capable of dealing with extensions? > > As an example from perldoc File::basename: > ############################################### > #!/usr/bin/perl -w > use strict; > use File::Basename; > my($base,$path,$type) = fileparse('/virgil/aeneid/draft.book7'); The example actually is: ( $base, $path, $type ) = fileparse( '/virgil/aeneid/draft.book7', '\.book\d+' ); Where the second argument to fileparse() is a regular expression (which is why there is a back-slash in front of the period.) > print $base,"\n",$path,"\n",$type,"\n"; > ################################################# > > This gives > > draft.book7 > /virgil/aeneid/ > Use of unitialized value in print at line5 John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]