on-internet
← Community

How can I suppress warning messages emitted by Getopt::Std::getopts?

Stack Overflow ·

I have short script test.pl #!/usr/bin/perl use locale; use encoding 'utf-8'; use Getopt::Std; getopts("dei") or print STDERR "TRALALALALA\n"; print"@ARGV\n"; I need to suppress Unknown option: messages generated by getopts and only get mine TRALALALALA on stderr.

Comments

Sign in or sign up to comment and upvote.

No comments yet.