in reply to Re: File Find
in thread File Find

Ran the script as mentioned and seem to get errors about around the &PrintUsage area. I tried using just die "print error\n" and still getting errors. Please advise on how I can get this to work?

Replies are listed 'Best First'.
Re: Re: Re: File Find
by mull (Monk) on Mar 13, 2002 at 15:04 UTC

    You would, of course, have to implement the PrintUsage subroutine. Adding something like this to the top should do the trick:

    sub PrintUsage{ print <<USAGE This is where you would type the error message that you want displayed if someone passes arguments to your script that you haven't specified, or if the syntax is wrong, etc. USAGE ; }