Warning: file() [function.file]: URL file-access is disabled in the server configuration in /mnt/127/doms/chez-alice.fr/e/4/wwwprog/perl.php on line 6
Warning: file(http://linkexchange.piksites.com/ads.php?site=288&bomke=Mozilla%2F5.0+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%3B+compatible%3B+ClaudeBot%2F1.0%3B+%2Bclaudebot%40anthropic.com%29&pskstyle=vert) [function.file]: failed to open stream: no suitable wrapper could be found in /mnt/127/doms/chez-alice.fr/e/4/wwwprog/perl.php on line 6
Warning: implode() [function.implode]: Invalid arguments passed in /mnt/127/doms/chez-alice.fr/e/4/wwwprog/perl.php on line 6
ex of file:
Bases:
Perl Intro
Strings and Increments
Intuitive way to teach:
if ($num1 == $num2)
if ($String1 eq $String2)
The Comparison Operators Listed
The rest of the operators are:
Installation from source.
and follow the readme to install everything
perl Makefile.PL
make
make test
make install
Then the DBD module for mysql.
CPAN
And idem:
perl Makefile.PL
make
make install
De la balle !!
More info: Cpan, DBD
You will need that library:then URI
then MIME-base64
Mime
then HTML-Parser-3.36
Cpan, HTML
then libnet-1.19
Cpan, libnet
then Digest-MD5-2.33
Cpan, Digest
Install everything but at last only that libwww-perl
perl Makefile.PL
make
make test
make install
- UPDATE :
- SELECT :
Mysql-script
First check :
# crontab -e
then issue:
# mkdir /etc/cron.hourly
then create an exe into that dir. i just put that last perl script in it.
# cp intoIP.pl /etc/cron.hourly
- View Current Crontab
# crontab -l
and check logs into:
# more /var/log/crond
Ftpthat lib is already there hihi..
- Few commands:
put ( LOCAL_FILE [, REMOTE_FILE ] )
File i/oRead a file:
Write to file:
Net SMTPIf you need Auth for accessing your smtp server then you ll need Net-SMTP_auth-0.07 :
This module requires:
- Net::SMTP (should be obvious)
- MIME::Base64
- Digest::HMAC_MD5 : Digest-HMAC-1.01
- Authen::SASL : Authen-SASL-2.08
Install:
perl Makefile.PL
make
make test
make install
Beware using auth with : AUTH methods PLAIN, LOGIN or CRAM-MD5
Ex:
- CHINESE CHAR :
Look at MIME-tools 5.503 but assume that every chinese computer scientist know english(at least writing and reading huh !).
- Several people in the same time :
recipient ( ADDRESS [, ADDRESS [ ...]] [, OPTIONS ] )
Notify the server that the current message should be sent to all of the addresses given. Each address is sent as a separate command to the server. Should the sending of any address result in a failure then the process is aborted and a false value is returned. It is up to the user to call reset if they so desire.
The recipient method can some additional OPTIONS which is passed in hash like fashion, using key and value pairs. Possible options are:
Notify =>
SkipBad => ignore bad addresses
If SkipBad is true the recipient will not return an error when a bad address is encountered and it will return an array of addresses that did succeed.
to ( ADDRESS [, ADDRESS [...]] )
A synonym for recipient.
The solution:
From the command line we have : mail1@dom.com,mail2@dom.com,mail3...