Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Patrick Delahanty
For full show notes, visit http://twit.tv/show/coding-101/25
Amazon Auto Links: No products found.
Hosts: Fr. Robert Ballecer, SJ and Shannon Morse
Guest: Patrick Delahanty
For full show notes, visit http://twit.tv/show/coding-101/25
Amazon Auto Links: No products found.
Author: Coding 101
so you have to install mod_perl in apache
Thanks for these videos !
What laptop does she have?
I thought that was safety function.
A cool example of server side programming is: you tell your server to call a perl script whenever you have a *.gif picture to show in your html page. The server tries to load a *.gif, so it calls showGif.pl with the parameter /gif/path/example.gif . So, the script counts the number of pages shown, through its environment variables it gets the client IP address, can know its location, country code, country language, etc. Then to finish, the script sends the raw binary code of the gif image that corresponds to what the server has to show. And, the client sees the page, as usual, without knowing the amount of info that the perl script has collected. For example, to use for statistics.
Regarding windows replace feature below code works for windows
Step1 Go to myText Directory
c:>cd myText
Step2 Replace text for all the files within that directory
c:myText> for %f in (*.txt) do perl -pi.bak -e “s/Varun/Mr. Varun/g” “%f”
CGI is pretty much deprecated in the Perl community. I’d recommend looking at a PSGI compliant web framework like Dancer 2.0 or Mojolicious or Catalyst. Also check out perlmaven.com for a lot more Perl tutorials.