Perl programming related question.

Lázaro Morales lazaro at frioclima.com.cu
Thu Aug 16 16:07:35 UTC 2012


Some time ago, Boris Epstein said:

> Lazaro,
>I don't remember all the details of how you'd do it but I believe you can
> use the split() function to split the string and then find the last member
> of the resulting array.
>Good luck!
>Boris.

Thanks Boris and Craig,

Using the split function I get this:

my $url = "http://somesite.org/somefile.zip";
my @parser = split //+/, $url;
my $file = $#parser;

Thanks very much,
Lázaro.

*****************************************************************************
*  Este mensaje de correo electrónico ha sido procesado  por el  *
*  Servidor  de Correo  Electrónico  de  Frioclima  y  es un correo *
*  válido para el dominio: frioclima.com.cu                                     *
*****************************************************************************




More information about the users mailing list