i is not numeric.
$i is.
Welcome to Perl. :-)
In reply to Re: Read/Create files by marinersk in thread Read/Create files by TANYALYNN82