Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by tony@perlmonks.org (Initiate)
on Jul 17, 2013 at 16:12 UTC ( #1044858=note: print w/replies, xml ) Need Help??


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

This worked, Thanks for that..
  • Comment on Re^2: Storing a variable in a file and processing within the script

Replies are listed 'Best First'.
Re^3: Storing a variable in a file and processing within the script
by Preceptor (Deacon) on Jul 17, 2013 at 17:01 UTC

    Works nicely, but bear in mind that that is essentially a placeholder - that 's/...' line is replacing the text '$table_name' with the value held in the variable '$table_name'. I'd tend to suggest that's a source of confusion later on.

      I absolutely agree -- scope confusion waiting to happen.

      I also fully agree with the other posters who added the suggestion to use clearly identifiable tags (I'm a big fan of double hash sign encapsulated codes like ##TABLE_NAME## and such), as well as the numerous warnings about this solution being susceptible to injection attacks.

      I just figured the first step was to get the OP past the operational issue, and then start layering in the good engineering practices LOL.

      Noted. Thanks again

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2016-09-27 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (513 votes). Check out past polls.