Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Storing a variable in a file and processing within the script

by Corion (Patriarch)
on Jul 17, 2013 at 15:13 UTC ( [id://1044834]=note: print w/replies, xml ) Need Help??


in reply to Storing a variable in a file and processing within the script

As an aside, you may want to look at Querylet, which implements the "run SQL, create Excel" workflow.

If you still want to roll your own, have a look at various templating engines, Interpolation or this very, very basic regex:

my %variables= ( table_name => 'EMPLOYEE', # setting a table name ); ... $sql=~ s!\$(\w+)!$variables{ $1 } || "\$$1" !ge; print $sql;

Log In?
Username:
Password:

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

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

    No recent polls found