There are modules that can parse out options like "-x" and so forth. Depending upon your shell, wild cards can be used in the command line, like: file_*#!/usr/bin/perl; use strict; use warnings; #this file is: file_3.pl #command used: >perl file_3.pl -file_1 -file_2 print "$_\n" for @ARGV; __END__ C:\Projects_Perl\testing>perl file_3.pl -file_1 -file_2 -file_1 -file_2
I am not sure what you want to do. Please explain further.
In reply to Re: How to use @ARGV
by Marshall
in thread How to use @ARGV
by chaney123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |