in reply to Re: Find, copy & rename
in thread Find, copy & rename

Blokhead, The problems I'm having is passing $fixed_path to sub routine (sub find_copy_rename) my code works independantly but now I'm trying to make it work dynamicall by reading a file and getting values out of the file like a file path , certain numbers , etc. I tried to compile it but it gives me $dir, $get_each_directory & $newdir "requires a special package name" I'll appreciate your help.

Replies are listed 'Best First'.
Re: Re: Re: Find, copy & rename
by CountZero (Bishop) on Feb 24, 2003 at 12:30 UTC

    The documentation of File::Find says:

    WARNINGS

    If you run your program with the -w switch, or if you use the warnings pragma, File::Find will report warnings for several weird situations. You can disable these warnings by putting the statement

        no warnings 'File::Find';
    

    in the appropriate scope. See perllexwarn for more info about lexical warnings.

    Perhaps that is the "cause" of your weird error messages.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law