greetings,
I have a perl problem...
I'm trying to assign a line from a file to a separate array, consider the following code:
---
open(FILE, "./something") or die "$!\n";
@file = <FILE>;
close(FILE);
$line = $file[2]; #this would be line 3 of $file
@myline = $line; # .... :(
---
now I have the line I want in $line, I want to be able to read each character separately, but I if I try and assign $line to another array, it doesn't work.
Does anyone know of a way to solve this? I would greatly appreciate the help.