Hi
I want to open a file with the file handle as a variable because i am getting it as input to my function
$File_Handle = "File_Handle";
open $File_Handle, "<", \$Sample.txt or die "Cannot open $Sample.txt for read :$!";
while (<$File_Handle>)
{
}
I get an error :
Can't use string ("File_Handle") as a symbol ref while "strict refs" in use at Log_Preocessing.pl line 28.
How can i do this
Thanks