Your code does not really match your output. Any way, < is redirect, and does not set -v.
use strict; use Getopt::Std; our $opt_v; getopt('v'); print $opt_v;
When you run it as perl -w blah.pl -v abc, it prints abc as expected.
In reply to Re: Getopt::Std and simple options
by pg
in thread Getopt::Std and simple options
by Dizzley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |