Main > Programming > Libraries >

Class::HPLOO 0.23

Class::HPLOO 0.23

Sponsored Links

Class::HPLOO 0.23 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.027 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 867
Date added: 2007-06-09
Publisher: Graciliano M. P.

Class::HPLOO 0.23 description

Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod.

USAGE

use Class::HPLOO ;

class Foo extends Bar , Baz {

use LWP::Simple qw(get) ; ## import the method get() to this package.

attr ( array foo_list , int age , string name , foo ) ## define attributes.

vars ($GLOBAL_VAR) ; ## same as: use vars qw($GLOBAL_VAR);

my ($local_var) ;

## constructor/initializer:
sub Foo {
$this->{attr} = $_[0] ;
}

## methods with input variables declared:
sub get_pages ($base , @pages , %options) {
my @htmls ;

if ( $options{proxy} ) { ... }

foreach my $pages_i ( @pages ) {
my $url = "$base/$pages_i" ;
my $html = get($url) ;
push(@htmls , $html) ;
$this->cache($url , $html) ;
}

return @htmls ;
}

## methos like a normal Perl sub:
sub cache {
my ( $url , $html ) = @_ ;
$this->{CACHE}{$url} = $html ;
}

sub attributes_example {
$this->set_foo_list(qw(a b c d e f)) ;
my @l = $this->get_foo_list ;

$this->set_age(30) ;
$this->set_name("Joe") ;
$this->set_foo( time() ) ;
print "NAME: ". $this->get_name ."n" ;
print "AGE: ". $this->get_age ."n" ;
print "FOO: ". $this->get_foo ."n" ;
}

}

## Example of use of the class:

package main ;

my $foo = new Foo(123) ;
$foo->get_pages(http://www.perlmonks.com/, [/index.pl,/foo] , {proxy => localhost:8080}) ;

Class::HPLOO 0.23 Screenshot

Advertisements

Class::HPLOO 0.23 Keywords

Bookmark Class::HPLOO 0.23

Hyperlink code:
Link for forum:

Class::HPLOO 0.23 Copyright

WareSeeker periodically updates pricing and software information of Class::HPLOO 0.23 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::HPLOO 0.23 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Clone is a Perl module that can recursively copy Perl datatypes. Free Download
Class::XML is a Perl module for simple XML Abstraction. Free Download
Class::Declare is a Perl module created to declare classes with public, private and protected attributes and methods. Free Download
Class::ObjectTemplate is a Perl extension for an optimized template builder base class. Free Download
Class::Agreement is a Perl module that add contracts to your Perl classes easily. Free Download
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. Free Download
Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch. Free Download
Hoglet allows special markup to be added to text documents so that software documentation can be easily produced. Free Download