$ARGV[0] and $ARGV[1] are not file handles.  They are elements of
commandline argument array @ARGV.  ARGV is a special file handle that
holds the current file being read by an empty <> operator.  $ARGV is
another special variable that holds the name of the file currently being
read by an empty <> operator.

On 05 Jul 2001 16:04:03 +0100, Govinderjit Dhinsa wrote:
>       I have tried to find out in full detail about the file handle $ARGV
> and only got the basics.  
> 
>       Could any one please explain the $ARGV in more detail, e.g. how to
> put a input file into the $ARGV, if the input file was constantly changing!
> 
> 
> 
>       The File in may program:
>       ################
>       open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!;
>       open sortcode,">$ARGV[1]";
>       while($line=<iscd>){
>       ################
> 
>       Thanks,
>       GD 
> 
--
Today is Sweetmorn, the 40th day of Confusion in the YOLD 3167
You are what you see.


Reply via email to