And the file "file.txt" contains:#!/usr/bin/perl -w $ID="1234"; open(FILE,"<file.txt"); while(<FILE>) { print; close(FILE); exit 0;
This is a text file. My ID number is $ID.
When printing out that line, it prints out '$ID' instead of evaluating the variable. How to get the variable to be evaluated? This is eluding me for some reason.
In reply to Eval'ed data loaded from a file? by dakotas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |