Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Substituting Variables while reading text file

by mohanm_eee (Initiate)
on Aug 05, 2014 at 17:48 UTC ( [id://1096329]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $VAR = TEMP_VAR
    open (FILE,"<", "file.txt") or die $!;
            while (<FILE>) {
    ...
                    eval(print "$_\n");
            }
            close (FILE);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1096329]
Approved by toolic
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-24 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found