Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: File Find

by oaklander (Acolyte)
on Mar 13, 2002 at 14:45 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-28 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found