On Tue, 27 Dec 2005, Brano Gerzo wrote: > I am programming one script. It should be accessible as cgi-bin from > web, and also as commandline from shell. > > But I don't know how to properly handle arguments and to know, if > script was called from commandline, or from web. > > Anyone could help me ?
Probably. Are you examining the %ENV hash ? It will have hints as to how the script was invoked. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>