Difference between revisions of "Tutorials/Perl Tutorial"
m (1 revision(s))
Revision as of 06:40, 11 May 2009
What I had to learn about perl:
open(FILE, ">"."$filename"); print(FILE "hello world");
functions with parameters
In any function (sub) you can access the parameters only via
for the first parameter
for the second parameter and so on.
Preg_replace in perl works like this:
$url =~ s\http://\\g;
$url then contains what was in before, but without http://