Your skill will accomplish what the force of many cannot |
|
PerlMonks |
pp concatenate pathby IB2017 (Pilgrim) |
on Apr 20, 2018 at 20:44 UTC ( [id://1213280]=perlquestion: print w/replies, xml ) | Need Help?? |
IB2017 has asked for the wisdom of the Perl Monks concerning the following question: Windows 10, Strawberryperl 5.16.3, pp If I pack the following two scripts with pp, the first work, the second not (Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at script/myscript.pl). In the first, the database path is hard encoded, in the second it is read by a configuration file (in the example a simple text file). Note that both works nicely from command line
And here the second script, reading the same $Path value from file
What is wrong in the second script that pp doesn't like?
Back to
Seekers of Perl Wisdom
|
|