When i run my script like so: 

C:\>perl script.pl -f file

It works fine. But, if I just do:

C:\>script.pl -f file

then I don't get any errors but getopts doesn't assign anything to $opt_f

This works just fine on perl 5.8 Windows XP, but it doesn't work on perl 5.12 on Windows 7.
There aren't any other versions of perl installed (its a new OS build).

Code:

use Getopt::Std;
our ($opt_f);
getopts('f:');
print "input file is: $opt_f \n";
print "$0\n


Run with:

C:\&gt; perl get.pl -f sadf
input file is: sadf
get.pl


Run without:

C:\&gt;get.pl -f sadf
input file is:


Nothing!

EDIT:  fixed and this question was a repeat...
http://stackoverflow.com/questions/1695188/how-do-i-make-perl-scripts-recognize-parameters-in-the-win32-cmd-console

The OP of that post figured it out.
I had to do the same but also recreate the assoc in the gui (in addition to in the reg and on the command line with ftype.)  


Question: Are there English equivalents to the Japanese saying, “There’s a god who puts you down as well as a god who picks you up”?
Answer: To translate this expression, you need to cope with the very different attitudes towards divinity of Japanese and 'Western' culture. When a Japanese expression talks about the kami, it's in a different atmosphere than when an English expression talks about God.

There are many kami, they come and go. The Japanese expression suggests that there are many powers in the world and that different ones are influential at different times.

The monotheistic view is very different: there's one deity. It's very different for the one and only deity to dish out varying results than for random encounters with different kami to result in different outcomes.

Thus, you might want to stick to expressions that don't involve God, but rather talk about fate, or luck, or use the passive. I think you're better off avoiding divinity altogether, as you lose a lot more translation quality by referencing the very different divinity than you gain by maintaining the reference to divinity at all.