The arguments from the command line are passed in via the @ARGV array. You can either write your own code to handle the args or parse them w/ Getopt::Std
And by the way, since you're doing this from Linux -- if there's no particular reason you need to do this in Perl, you can check into the utility
, which was written to do this sort of thing, and will save you some typing.