On 12/09/2012 15:18, Mark Haney wrote:
I've got what I hope is an easy question to answer.  I've got a perl web
app that I've setup with a 'live' version (more like a beta actually)
and a dev version for me to make changes to that might break the other
site.

The way I inherited it was as a single site using 'use lib' with the
library files to a working site being used as the dev version.  I've
moved the files around to match the first paragraph setup.  Two
different sets of files, one live the other development.

For the time being I've manually change the 'use lib' statement before
uploading the changed/fixed code to the live site, but this is getting a
bit silly, not to mention completely not standard practice.

My question is, what IS standard practice for this?  Honestly, I've
never built a web app in this manner despite writing a lot of perl code.
  So?  What should I do?  Any suggestions are appreciated.

Hey Mark

I suggest you use set the MYLIBPATH environment variable to the
directory you want to use and then do

  use lib $ENV{MYLIBPATH}

at the head of your program

HTH,

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to