Can someone show me how to use arguements for the commandline? Ie: perl test.pl 25 . How do you accept arguments and store them as variables from the same line you run test.pl from?
I've used chomp(my $var = <STDIN>) a few times but that doesn't take it directly from that line and I was wondering how people do that. And is there a way to know how many arguements were supplied? Like if you needed exactly 1, or maybe exactly 2 arguements?
20040501 Edit by jdporter: Changed title from 'arguements'