script,takes,list,books,looks,they,considered
Quick Search for:  in language:    
script,takes,list,books,looks,they,considered
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Perl Stats

 Code: 56,870 lines
 Jobs: 87 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Perl
[[ A import of any database from any server to your site.
By Pamela RAI on 10/25


imgLeech
By Benjamin Tilley on 10/23


Even Odd Guessing Game
By Jason DeLuca on 10/15


Include Function
By -Oz on 10/13


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Check FatBrain for books

Print
Email
 
VB icon
Submitted on: 7/30/2000 12:21:51 AM
By: Found on the World Wide Web 
Level: Intermediate
User Rating: By 2 Users
Compatibility:5.0 (all versions), 4.0 (all versions), 3.0 (all versions), Pre 3.0

Users have accessed this code 2429 times.
 
 
     This script takes a list of books and looks to see if they are considered published on fatbrain.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    =**************************************
    = Name: Check FatBrain for books
    = Description:This script takes a list o
    =     f books and looks to see if they are con
    =     sidered published on fatbrain.
    = By: Found on the World Wide Web
    =**************************************
    
    use strict;
    use LWP::UserAgent;
    my $VERSION = 1.0;
    my %pages = (
    				'Firewall 1' => 'http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=007134229x',
    				'Bay Network Router Configuration' => 'http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=0070284857',
    				'Mastering Algorthims with Perl' => 'http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=1565923987',
    				);
    foreach (keys %pages) {
    my $ua = new LWP::UserAgent;
    my $req = new HTTP::Request GET => $pages{$_};
    my $string = $ua->request($req)->as_string;
    	if ($string =~ m/Not yet published/g) {
    	print "$_ is not out yet.\n";
    	} else {
    	print "$_ has been published.";
    	}
    }
    =head1 NAME
    fatbrain - This script takes a list of books and looks to see if they are considered published on fatbrain.
    =head1 DESCRIPTION
    I am always waiting for books to be published and I am sick of doing all the work in looking them up. 
    I created this script to check if the books I am looking for are published.
    =head1 README
    =head1 PREREQUISITES
    This script has a few requirements. You will need LWP and you will need to look up the book the first time
    yourself. Once you have the url cut and paste it into the value field in %pages and put in a description in the key
    of the hash.
    =head1 COREQUISITES
    None
    =pod SCRIPT CATEGORIES
    Web
    =cut


Other 103 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments

 There are no comments on this submission.
 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Perl Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.