11-01-2012
thanks very much,
Do you have the links to download these two books?
regards,
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hey,
i am a pretty good linux/unix user but i would like to discover the full capabilities of linux/unix. i have "unix unleashed , by sams" any other books/websites reccomendations. thanks (2 Replies)
Discussion started by: hamza11050
2 Replies
2. UNIX for Dummies Questions & Answers
I am new to program development on Linux.
I wonder what computer languages are easy to grasp to create man - machine interactive interface software, which can accept inputs (parameters) from usrers, and present (display) the calculation results to users.
Before, I have heared about Perl,... (10 Replies)
Discussion started by: cy163
10 Replies
3. Fedora
Not totally new to Linux. Have done distro installs before. At this point, I'm looking for a way out of the MS lock down I've been in. Looking for a good beginner/intermediate book. One that will cover things such as server installs as well as things like X-Windows/SAMBA installs from CLI. What I... (2 Replies)
Discussion started by: jcayo11
2 Replies
4. What is on Your Mind?
I am new to unix world. I just know some basic commands only and some basics knowledge about unix. Anyone please suggest me from where should I start. Suggest me some book that could help me from the beginning. Presently I am working in php in a company and I want to move in unix. Please suggest me... (1 Reply)
Discussion started by: UNITRIX
1 Replies
5. Shell Programming and Scripting
I am begginer to perl scripting, i like to learn all the functionality of the perl scrpting , Could you please help me on this :confused::confused: (2 Replies)
Discussion started by: jothi basu
2 Replies
6. What is on Your Mind?
In case you have not seen it, we have a UNIX and Linux Timeline on FB.
If you have a few free moments, could you review the timeline and post back here in this thread with your suggestions and ideas for new entries and milestones?
Thanks! (1 Reply)
Discussion started by: Neo
1 Replies
7. Ubuntu
pleas suggest free e books to begin Bash scripting in ubuntu..... (2 Replies)
Discussion started by: vyom
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm a beginner and am learning c programming. I want to learn UNIX/LINUX in parallel. But I don't know difference between UNIX and LINUX and where they are applied in real life. As a beginner, some people asked me to start with UNIX. Please let me know some very good books for UNIX. Also a... (6 Replies)
Discussion started by: nerdbee
6 Replies
LEARN ABOUT DEBIAN
www::mechanize::cookbook
WWW::Mechanize::Cookbook(3pm) User Contributed Perl Documentation WWW::Mechanize::Cookbook(3pm)
NAME
WWW::Mechanize::Cookbook - Recipes for using WWW::Mechanize
INTRODUCTION
First, please note that many of these are possible just using LWP::UserAgent. Since "WWW::Mechanize" is a subclass of LWP::UserAgent,
whatever works on "LWP::UserAgent" should work on "WWW::Mechanize". See the lwpcook man page included with the libwww-perl distribution.
BASICS
Launch the WWW::Mechanize browser
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck => 1 );
The "autocheck => 1" tells Mechanize to die if any IO fails, so you don't have to manually check. It's easier that way. If you want to do
your own error checking, leave it out.
Fetch a page
$mech->get( "http://search.cpan.org" );
print $mech->content;
"$mech->content" contains the raw HTML from the web page. It is not parsed or handled in any way, at least through the "content" method.
Fetch a page into a file
Sometimes you want to dump your results directly into a file. For example, there's no reason to read a JPEG into memory if you're only
going to write it out immediately. This can also help with memory issues on large files.
$mech->get( "http://www.cpan.org/src/stable.tar.gz",
":content_file" => "stable.tar.gz" );
Fetch a password-protected page
Generally, just call "credentials" before fetching the page.
$mech->credentials( 'admin' => 'password' );
$mech->get( 'http://10.11.12.13/password.html' );
print $mech->content();
LINKS
Find all image links
Find all links that point to a JPEG, GIF or PNG.
my @links = $mech->find_all_links(
tag => "a", url_regex => qr/.(jpe?g|gif|png)$/i );
Find all download links
Find all links that have the word "download" in them.
my @links = $mech->find_all_links(
tag => "a", text_regex => qr/download/i );
APPLICATIONS
Check all pages on a web site
Use Abe Timmerman's WWW::CheckSite http://search.cpan.org/dist/WWW-CheckSite/ <http://search.cpan.org/dist/WWW-CheckSite/>
SEE ALSO
WWW::Mechanize
AUTHORS
Copyright 2005-2010 Andy Lester "<andy@petdance.com>"
Later contributions by Peter Scott, Mark Stosberg and others. See Acknowledgements section in WWW::Mechanize for more.
perl v5.14.2 2011-08-05 WWW::Mechanize::Cookbook(3pm)