in reply to How to run a perl program from the Windows CMD?

You could try running:

perl test.pl
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^2: How to run a perl program from the Windows CMD?
by Stefany (Acolyte) on Mar 06, 2014 at 10:15 UTC
    Thank you, but it says it's not a recognizable file :(

      That perl isn't a recognizable file? Or test.pl isn't?

      If the former, are you sure that you've installed Perl correctly?

      use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name