On 04/03/2011 16:48, Téssio Fechine wrote:
>
>> De: Shawn H Corey wrote:
>
>> my ( $file, $dir, $sufix ) = fileparse( $item, %sufixTable );
>>
>> I don't think fileparse takes a hash as the final
>> arguments. It would be converted to an array and both
>> the keys and the values used.
>>
>>
Thanks for the help!
> De: Shawn H Corey
> Assunto: Re: File::Basename problem
> Para: beginners@perl.org
> Data: Sexta-feira, 4 de Março de 2011, 13:22
> On 11-03-04 11:14 AM, Téssio Fechine
> wrote:
> > my ( $file, $dir, $sufix ) =
> fileparse( $item, %sufixTable );
On 11-03-04 11:14 AM, Téssio Fechine wrote:
my ( $file, $dir, $sufix ) = fileparse( $item, %sufixTable );
I don't think fileparse takes a hash as the final arguments. It would
be converted to an array and both the keys and the values used.
Also, from `perldoc File::basename`:
If @s
On Fri, 2007-04-27 at 11:16 -0700, Nishi wrote:
> Yes, its the cygwin perl to be blamed.
> Would setting the ACTIVESTATE environment variable help? before running the
> scripts that contain the basename usage?
Cygwin is a Unix environment emulated in Windows. Paths on Unix are
done by slash eg /
Yes, its the cygwin perl to be blamed.
Would setting the ACTIVESTATE environment variable help? before running the
scripts that contain the basename usage?
Thanks, Nishi.
On 4/26/07, Ken Foskey <[EMAIL PROTECTED]> wrote:
On Wed, 2007-04-25 at 17:15 -0700, Nishi wrote:
> Hi:
>
> The File::Base
On Wed, 2007-04-25 at 17:15 -0700, Nishi wrote:
> Hi:
>
> The File::Basename from 5.8.0 doesnot work in Perl 5.8.2 or Perl 5.8.7. Is
> there any particular reason.
Are yhou using activestate or cygwin perl. cygwin will do that because
the filename you provided is not a cygwin filename. cygpath
On 4/25/07, Nishi <[EMAIL PROTECTED]> wrote:
Hi:
The File::Basename from 5.8.0 doesnot work in Perl 5.8.2 or Perl 5.8.7. Is
there any particular reason.
I have a script that uses the Basename module was running file with 5.8.0,
but it doesnt work fine when i run the script in Perl 5.8.2 or Perl
Paul Kraus wrote:
>
> From how I understood it file::basename was able to tell figure out the
> filename without path for both windows and UNIX.
> I have an html page that has a form field for uploading a file. When I
> hit the choose button it lets me pick something from my directory. Now
> the fi
On Fri, 12 Apr 2002, Green, Chris wrote:
> use FILE::BASENAME
>
> $record = "D:\\data\\filename.bat";
>
> ($name,$path,$suffix) = fileparse($record,@suffixlist);
> $basename = basename($record,@suffixlist);
> $dirname = dirname($record);
Chris:
1. Put a semi-colon after the use sta
Chris Green wrote:
>
> I'm having problems using FILE::BASENAME and the fileparse command. I've
> used the code below to try it out but get an error message saying 'Undefined
> subroutine &main::fileparse called at D:\data\parse.pl line 6'
>
> use FILE::BASENAME
Module names are Case Sensitive.
Chris,
I think perhaps a mising semi-colon and case problems could be to blame. Try
use File::Basename; #observe case
Because on a unix system FILE/BASENAME and File/Basename are different.
Tristan
You Wrote:
--
I'm having problems using FILE::BASENAME and the fileparse command. I'
On Fri, Jan 11, 2002 at 07:16:29AM -0500, zentara wrote:
> 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
zentara wrote:
> On Fri, 11 Jan 2002 04:39:05 -0800, [EMAIL PROTECTED] (John W. Krahn) wrote:
>
> >Zentara wrote:
> >
> >> 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
On Fri, 11 Jan 2002 04:39:05 -0800, [EMAIL PROTECTED] (John W. Krahn) wrote:
>Zentara wrote:
>
>> 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 lin
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 fro
On Thu, Dec 13, 2001 at 06:13:05PM -0500, Thomas A. Lowery wrote:
[snip]
> "You are guaranteed that if you concatenate path, name,
> and suffix together in that order, the result will
> denote the same file as the input file specification."
[snip]
>
> -Original Message-
> From: Crowder, Rod [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 5:37 AM
> To: Perl Beginners List (E-mail)
> Subject: File::Basename Under W98
>
>
> I am trying to use the File::Basename module to strip off the
> suffix of a
> file, and use th
17 matches
Mail list logo