On Thu, 27 Feb 2003 10:45:16 -0400,
 "Administrador Intranet Internet" <[EMAIL PROTECTED]> wrote:
> i have one program that looks some files in:
>
>   opendir DIRDATOS, 'f:\\net\\estadisticas\\meses\\';

If "meses" will always be a subdir to the directory holding the Perl
script, try:
    use FindBin;
    opendir DIRDATOS, $FindBin::Bin . '/meses';

>   @ficheros = readdir DIRDATOS;
>   closedir DIRDATOS;
>
> # the program is in estadisticas dir, and the file are in meses dir
>
> but f: is ok for my machine, but not for the final machine where
> the program is going to work.
>
> some help?

perldoc FindBin

HTH,
Jonathan D Johnston
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to