Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: File Find

by oaklander (Acolyte)
on Mar 13, 2002 at 14:45 UTC ( #151388=note: print w/replies, xml ) Need Help??

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 ; }

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://151388]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-09-26 08:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found