in reply to Getopt::Std and simple options
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getopt::Std and simple options
by Dizzley (Novice) on Sep 06, 2005 at 05:44 UTC |