Shouldn't following snippet throw error message when
it is called without any parameter?

I can't see any error messsage, why?


#  /tmp/test.pl
Executed successfully
#
------------------------------
#!/usr/bin/perl

use Getopt::Long;
GetOptions("verbose"  => \$verbose,
          "debug"    => \$debug,
          "output=s" => \$output) || print "No inputs specified\n";

print "Executed successfully\n";
-------------------------------

Thanks,
Manish

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to