Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Substituting Variables while reading text file

by Laurent_R (Canon)
on Aug 05, 2014 at 18:52 UTC ( [id://1096337]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $VAR = TEMP_VAR
    
  2. or download this
    my $VAR = "TEMP_VAR";
    
  3. or download this
    $ echo 'create variable $VAR alarm_object 0' | perl -e '$VAR = "TEMP_V
    +AR"; while (<>) { chomp; eval (qq{print  "$_\n";});}'
    create variable TEMP_VAR alarm_object 0
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1096337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found