Lightning flashed, thunder crashed and "Bob Bondi" <[EMAIL PROTECTED]> w
hispered:
| Yep, another newbie at Perl. I have come to a wall. What I need to do is
| open a file, find a value in the file and substitute a value.
| I've gotten to the point of what to do with an open file. I have been trying
| the @array = <testfile> statement.
| I then wanted to verify the contents of the array and tried printing it,
| print("$array\n");

Your first and biggest mistake is that you seem to be confused about the
differences between an array (@array) and a scalar ($array).  There is no
relationship between the array @array and the scalar $array.  There would
be a relationship between the array @array and the array element
$array[$i].

Once you've figured out that problem, the rest should fall in line for you.

-spp

Reply via email to