C
cendrizzi
Ok, I'm trying to learn perl for a potential position.
I would consider myself a very experienced php programmer with a
little exposure to perl.
As far as syntax goes, perl seems pretty easy (some things I even like
a lot). I have an ubuntu feistry server that I've setup with
mod_perl. It works great for parsing simple stuff but now I'm ready
to extend the functionality a bit and want to connect to postgresql,
etc.
Admittedly this is more a systems things than a programming thing but
I need to get things in place so I can program and learn. First of
all, how does mod perl work with the cpan packages? When I install
something using cpan should I be able to use that module (ie "use
module::module") immediately after? So far that has not been my
experience. Furthermore, can I use the cgi stuff in cpan when I'm
using mod_perl, like cgi::ajax?? I've just never had to deal with all
this with php so it's feeling very overwhelming in how it all works
together (I'm trying to read books and have been googling for hours to
make sense of it).
Finally, and most frustrating is getting error or warning feedback.
Where do I go? I currently am trying to connect to my db with:
$dbh = DBI->connect("dbig:dbname=ecommerce;host=127.0.0.1",
"cendrizzi", "************", {AutoCommit => 0});
I then try to do stuff with $dbh and nothing happens but I don't get
errors either. I have no idea what is going on or if I can even
successfully connect to the db?! In PHP you can turn on errors and
warnings to display them in the page, I'm sure Perl is just
different. How can I troubleshoot this stuff?
Thanks for any help you can provide me with.
I would consider myself a very experienced php programmer with a
little exposure to perl.
As far as syntax goes, perl seems pretty easy (some things I even like
a lot). I have an ubuntu feistry server that I've setup with
mod_perl. It works great for parsing simple stuff but now I'm ready
to extend the functionality a bit and want to connect to postgresql,
etc.
Admittedly this is more a systems things than a programming thing but
I need to get things in place so I can program and learn. First of
all, how does mod perl work with the cpan packages? When I install
something using cpan should I be able to use that module (ie "use
module::module") immediately after? So far that has not been my
experience. Furthermore, can I use the cgi stuff in cpan when I'm
using mod_perl, like cgi::ajax?? I've just never had to deal with all
this with php so it's feeling very overwhelming in how it all works
together (I'm trying to read books and have been googling for hours to
make sense of it).
Finally, and most frustrating is getting error or warning feedback.
Where do I go? I currently am trying to connect to my db with:
$dbh = DBI->connect("dbig:dbname=ecommerce;host=127.0.0.1",
"cendrizzi", "************", {AutoCommit => 0});
I then try to do stuff with $dbh and nothing happens but I don't get
errors either. I have no idea what is going on or if I can even
successfully connect to the db?! In PHP you can turn on errors and
warnings to display them in the page, I'm sure Perl is just
different. How can I troubleshoot this stuff?
Thanks for any help you can provide me with.