03 Jan, 2011

Perl fetching

Articles related to perl fetching

Perl Script to Fetch PNR Status reservation on train from Indian Railways

http://digitalpbk.com/perl/script-fetch-pnr-status-reservation-train-indian-railways Perl Script to Fetch PNR Status reservation on train from Indian Railways The code below is a perl script that fetches the PNR status from the indianrail.gov.in website and displays it on the command line. Warning: No one is authorised to make any type of commercial usage like putting web advertisements or SMS service and Reproducing/Transmitting/Storing in its database, any content of www.indianrail.gov.in website, without prior written permission from Indian Railways. Violators ...
Published 2 years ago

yum/apt-get update Breaks Perl CPAN

http://digitalpbk.blogspot.com/2009/07/perl-update-code-500-architecture.html upgrade while we are running...CPAN: LWP::UserAgent loaded okFetching with LWP: ftp://ftp.jaist.ac.jp/pub/CPAN/modules/03modlist.data.gzLWP failed with code[500] message[Errno architecture (i386-linux-thread-multi-2.6.18-53.1.14.el5pae) does not match executable architecture (i386-linux-thread-multi-2.6.18-53.el5) at /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.BEGIN failed--compilation aborted ...
Published 2 years, 7 months ago

Perl Script to send Free SMS to any mobile number in INDIA using way2sms

http://digitalpbk.com/perl-sms/perl-script-send-free-sms-any-mobile-number-india-using-way2sms Perl Script to send Free SMS to any mobile number in INDIA using way2sms The following script sends SMS to any number in INDIA using the free service provided by Way2Sms.com Requires WWW::Mechanize and Compress::Zlib libraries. Please remember to fill the username and password in the fields that is mentioned in the script. Updated code on 28th October 2011. If you face errors use the new script. #!/usr/bin/perl use WWW::Mechanize; use Compress::Zlib; my $mech ...
Published 2 years, 2 months ago

cPanel Mail Forwarder

http://digitalpbk.blogspot.com/2007/07/perl-email-forwarder.html cPanel Mail Forwarder ForwarderThis handly little program forwardes all emails coming to a certain specified email address and forwards to a forwarding list.Setting up the email capturinge-Mail can be captured using a PERL script. The contents of the email must be pipped in. The capturing an passing of the email can be done through cPanel.Click MailClick ForwardersAdd ForwarderIn the text box to the right side, you can provide an email address or a path to your PERL program that can process ...
Published 4 years, 7 months ago

Error Installing PERL modules "unrecognized command line option -fstack -protector"

http://digitalpbk.com/perl/install-modules-unrecognized-command-line-option-fstack-protector Error Installing PERL modules "unrecognized command line option -fstack -protector" Error Installing PERL modules "unrecognized command line option -fstack -protector" unrecognized command line option "-fstack-protector" error usually comes on Cygwin when installing PERL modules. For example when installing the DBI module or DBD::MySQL perl module, the following error comes on cygwin : cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm cp dbipport.h blib/arch/auto/DBI/dbipport.h cp lib/DBI/Gofer/Execute.pm blib ...
Published 1 year, 10 months ago

Perl - cPanel V3 and the @INC

http://digitalpbk.blogspot.com/2007/09/cpanel-v3-perl-include-inc.html Perl - cPanel V3 and the @INC Modifying @INC in a SCRIPTuse Module;is executed during compile time so if you modify the @INC array at run time it will not be reflected back in the compile time. So if you have to include any more include locations in the @INC inside a script, give it inside the BEGIN { }block.BEGIN{ push @INC,"location";}The BEGIN blocks are executed during compile time. So @INC is updated at compile time and the use module are correctly searched for in the updated ...
Published 4 years, 5 months ago

Perl script to remove a directory and contents recursively

http://digitalpbk.com/perl/perl-script-remove-directory-and-contents-recursively Perl script to remove a directory and contents recursively This is the script for sandeep when he asked me how to delete a directory in perl. rmdir function only removes empty directories. So we need to remove the contents of the directory before removing the directory. So if the directory contains more directories / folders we would have to recursively delete all the directories under the directory. Well so here is the code just to do that. #!/usr/bin/perl deldir("test"); ...
Published 2 years, 2 months ago

PERL: How to remove an element from hash or array?

http://digitalpbk.com/perl/how-remove-element-hash-or-array PERL: How to remove an element from hash or array? In order to remove an element from the array or hash, we have to use the delete keyword on perl. Using the delete keyword on the key of the hash or array (numeric keyed hash), we can delete elements of a hash or array. Example for deleting an element from a hash The following code deletes the key 'a' from the hash %hash. #!/usr/bin/perl $, = "\n"; # Fields separator my %hash = ( 'a' => 'aaa', 'b' ...
Published 1 year, 10 months ago

PHP file_get_contents giving garbled output

http://digitalpbk.com/php/file_get_contents-garbled-gzip-encoding-website-scraping PHP file_get_contents giving garbled output Are you getting garbled values when using file_get_contents fetching an external URL (website scrapping using php) and wondering what went wrong ? The content is appearing to have wierd characters instead of normal HTML output because of GZIP output encoding by the website you are fetching. You can fix this issue in multiple ways. Method 1 : Accept-Encoding In this method we set the request headers so that the webserver is forced to respond ...
Published 1 year, 11 months ago

Perl ImageMagick convert Images from one format to another

http://digitalpbk.blogspot.com/2009/07/perl-imagemagick-convert-jpeg-png-bmp.html Perl ImageMagick convert Images from one format to another IntroductionA Picture speaks louder than a thousand words. Most of the programming problems I usually worked with and involved in where dealing with just TEXT. So now I wanted to programatically work with images. I needed to warp, rotate, scale, stretch, convert from jpeg to png, png to jpeg, jpeg to bmp, bmp to jpeg etc. So I decided to search on how to do such a thing easily. Well the first obvious answer is to do handle all ...
Published 2 years, 6 months ago

Related help topics for perl fetching More keywords like perl fetching
More pages for perl fetching


Email Newsletter
Email:
Popular Posts
Recent Posts
Tags
Random photo
A Mirrored sky A Mirrored sky in Havelock Island Andaman
On Facebook
Recent Comments


digitalpbk