Main > Free Download Search >

Free congregational methodist church software for linux

congregational methodist church

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 26
Cosmos of Methos 0.3.36

Cosmos of Methos 0.3.36


Cosmos of Methos is a game which brings you back to the world of the Ancient Times. more>>
Cosmos of Methos is a game which brings you back to the world of the Ancient Times.

You are placed behind the wheel of a Hellenik Trireme, of a Phoenecian trade-ship or a Skythian pirate ship.

Nevertheless, you have equally the oportunity to rule your destiny. To become from a peaceful trader, a fearsome captain.

<<less
Download (0.098MB)
Added: 2007-07-26 License: GPL (GNU General Public License) Price:
822 downloads
WWW::Yahoo::DrivingDirections 0.08

WWW::Yahoo::DrivingDirections 0.08


WWW::Yahoo::DrivingDirections is a Perl module to generate driving directions for multiple-stop trips in the United States. more>>
WWW::Yahoo::DrivingDirections is a Perl module to generate driving directions for multiple-stop trips in the United States, courtesy of maps.yahoo.com.

ABSTRACT

Object-oriented interface to the maps.yahoo.com driving directions.

SYNOPSIS

use WWW::Yahoo::DrivingDirections;
my $yd = WWW::Yahoo::DrivingDirections->new ();
$yd->add_stops ( @ARGV );
$yd->get_maps();
or
use WWW::Yahoo::DrivingDirections;
my $yd = WWW::Yahoo::DrivingDirections->new (
{
roundtrip => 1,
return_html => 1,
save_html => 0,
save_format => output_%d.html,
},
atlanta, ga,
123 fake st, boston, ma,
0 church st, cambridge, ma,
LAX,
);
$yd->add_stops ( paris, tx, 1 main st, springfield, IL );
$yd->roundtrip ( 1 );
$html_array_ref = $yd->get_maps();

WWW::Yahoo::DrivingDirections provides a simple means of generating driving directions for trips with more stops than a start and a finish. Driving from LAX airport to 1 Main St, Portland, OR to Denver, CO? Just do this:

use WWW::Yahoo::DrivingDirections;
my $yd = WWW::Yahoo::DrivingDirections->new (
LAX, 1 Main St, Portland, OR, Denver, CO
);
$yd->get_maps();

and the directions will be saved in trip_leg_1.html and trip_leg_2.html.

<<less
Download (0.020MB)
Added: 2006-12-13 License: Perl Artistic License Price:
1046 downloads
Crossfire TRT 2.1

Crossfire TRT 2.1


Crossfire TRT project is an advancement of the crossfire multi-user RPG game. more>>
Crossfire TRT project is an advancement of the crossfire multi-user RPG game. Unlike the original project, it focuses mainly on stability and playability, but also adds modern technology such as map scripting, Perl server extensions, asynchronous I/O, higher resolution graphics, and better client support.
Main features:
- Death is not permanent, and you can get back all lost stats and experience by playing a game in a special place named Nimbus. You are teleported there when you die and you have to play a game (currently minesweeper) to get out.
- Friendly fire is disabled and playerkilling is also modified. You can only kill another player when you and the other player are hostile. To become hostile, you have to visit the church of Gorokh in Scorn and talk to the priest. To become peaceful again, visit the curch of Valriel and talk to its priest.
- Invitation of other players to where you are is possible with the invite command. You have to solve the invitor quest (see below in maps) to be able to use the command.
- You can follow other players with the follow command when you stand next to the player you want to follow.
- Pet monsters and summoned creatures will not stand in the way of other party members, making it bearable to play with summoning skills in a party.
- Map and graphics artists are working on improved graphics and new maps and quests.
- A new currency: the Royalty. Its worth 100 Platinum and is made of paper. (The bank script was completly rewritten in Perl)
- The communication commands have been rewritten in Perl and an ignore command was added.
- Trade shops have been implemented in Perl, which allows the player to trade items when they are offline.
- Big 64x64 faces and tiles have been introduced, which have a higher detail level than the old 32x32 tiles, and can be used with the CFPlus client.
Enhancements:
- optimised event invocation (non-wanted events can now be skipped with 4-5 inlined instructions).
- complete rewrite of town_portal: it now creates a portal to the "nearest" town only, travel is only possible to the town and back, anybody can use it (also removes one of the remaining syncpoints in the server).
- complete rewrite of the range/attack skill slot system: there are now two slots, one for combat, one for ranged attacks.
- introduce the concept of a current weapon (either a ranged or a combat weapon/skill/tool) and switch between them as needed.
- rewrite bow code so bows get more useful: apply damage, attacktype and other stats to the arrows and treat bows as weapons. also rebalance the missile weapons skill so its damage increases with level.
- rewrite the complete player speed logic: weapon_speed now works as documented and there are no unnatural speed boosts.
- implement a utility - cfutil - that simplifies arch and map installation, replacing the old collect scripts and simplying deployment by scaling and cutting faces as required.
- simplify the map protocol extensively by taking advantage of missing bigfaces, speeding up map generation immensely.
- implement inherit keyword allowing archetypes to inherit from other archetypes.
- rationalise archetype, region and treasurelist file format into a single file format and make them reloadable asynchronously.
- make the worldmap, facedata (smoothing, faces, magicmap) reloadable at runtime.
- implement 64x64 faceset support.
- implement fxixsx protocol that saves a lot of bandwidth over the old image/face/smooth packets and allows images > packetsize, incremental and background transfers.
- implement a bandwidth-saving smoothing protocol that works on a face basis as opposed to a mapspace basis.
- the server can now rate-limit image uploads to not exceed a certain (client-configurable) speed while guarenteeing full freedom of movement.
- implement new ex command to request item descriptions.
- implement new msg command for in-game messages with meta information (using xml).
- enforce utf-8 for all text messages.
- added micropather (not used yet).
- many, many bugfixes.
<<less
Download (14.2MB)
Added: 2007-05-31 License: GPL (GNU General Public License) Price:
878 downloads
A practical lambda-calculator 2.2

A practical lambda-calculator 2.2


A practical lambda-calculator is a Lambda-calculator with convenient commands and shortcuts. more>>
A practical lambda-calculator is a normal-order evaluator for the untyped lambda-calculus, extended with convenient commands and shortcuts to make programming in it more productive.

Shortcuts are distinguished constants that represent terms. Commands define new shortcuts, activate tracing of all reductions, compare terms modulo alpha-conversion, print all defined shortcuts and evaluation flags, etc.

Terms to evaluate and commands are entered at a read-eval-print-loop (REPL) "prompt" or "included" from a file by a special command. A Haskell branch is an embedding of the lambda calculator (as a domain-specific language) into Haskell. The calculator can be used interactively within Hugs or GHCi.

The present calculator implements what seems to be an efficient and elegant algorithm of normal order reductions. The algorithm is "more functional" than the traditionally used approach.

The algorithm seems identical to that employed by yacc sans one critical difference. The calculator also takes a more "functional" approach to the hygiene of beta-substitutions, which is achieved by coloring of identifiers where absolutely necessary. This approach is "more functional" because it avoids a global counter or the threading of the paint bucket through the whole the process. The integration of the calculator with Haskell lets us store terms in variables and easily and intuitively combine them.

The traditional recipe for normal-order reductions includes an unpleasant phrase "cook until done". The phrase makes it necessary to keep track of reduction attempts, and implies an ugly iterative algorithm. Were proposing what seems to be an efficient and elegant technique that can be implemented through intuitive re-writing rules.

Our calculator, like yacc, possesses a stack and works by doing a sequence of shift and reduce steps. The only significant difference from yacc is that the lambda-calculator "reparses" the result after the successful reduce step. The source and the target languages of our "parser" (lambda-calculator) are the same; therefore, the parser can indeed apply itself.

The parsing stack can be made implicit. In that case, the algorithm can be used for normalization of typed lambda-terms in Twelf.

The following examples show that lambda-calculus becomes a domain-specific language embedded into Haskell:

> c0 = f ^ x ^ x -- Church numeral 0
> succ = c ^ f ^ x ^ f # (c # f # x) -- Successor

> c1 = eval $ succ # c0 -- pre-evaluate other numerals
> c2 = eval $ succ # c1
> c3 = eval $ succ # c2
> c4 = eval $ succ # c3

It is indeed convenient to store terms in Haskell variables and pre-evaluate (i.e., normalize) them. They are indeed terms. We can always ask the interpreter to show the term. For example, show c4 yields (f. (x. f (f (f (f x))))).

let mul = a ^ b ^ f ^ a # (b # f) -- multiplication
eval $ mul # c1 ---> (b. b), the identity function
eval $ mul # c0 ---> (b. (f. (x. x))), which is "const 0"

These are algebraic results: multiplying any number by zero always gives zero. We can see now how lambda-calculus can be useful for theorem proving, even over universally-quantified formulas.

The calculator implements Dr. Fairbairns suggestion to limit the depth of printed terms. This makes it possible to evaluate and print some divergent terms (so-called tail-divergent terms):

Lambda_calc> let y_comb = f^((p^p#p) # (c ^ f#(c#c))) in eval $ y_comb#c
c (c (c (c (c (c (c (c (c (c (...))))))))))

It is amazing how well lambda-calculus and Haskell play together.
<<less
Download (0.021MB)
Added: 2005-04-01 License: Public Domain Price:
1672 downloads
Son of Service 0.1.5

Son of Service 0.1.5


Son of Service is a Web-based, multi-user volunteer management database for non-profits, schools, clubs, etc. more>>
Son of Service (SOS) is a multiuser volunteer management database for non-profits, charities, schools, churches, and clubs. SOS will keep track of your volunteers, their contact information, availability, work history, comments, reminders, and relationships.

It will help you quickly find the right volunteer for the job and e-mail him, and it will make reports about how you are using volunteers.

SOS is a helpful tool for organizations with many volunteers or multiple volunteer coordinators.

Your organization helps people for free, and your volunteers work for free. So you know there is a "free lunch."

SOS is free. Its free from charge: notice there is no menu option for purchasing or ordering. But SOS also provides freedom from many restrictions. Download the program, install it, and use it without buying expensive licenses.

Use it on as many systems with as many users and volunteers as you have. Use your choice of server operating system and RDBMS. (You dont need to buy a RDBMS or other server software.) You can even modify SOS to meet your specific needs because the full source is available to you.

<<less
Download (0.48MB)
Added: 2006-08-14 License: GPL (GNU General Public License) Price:
1167 downloads
Crystality Plugin 0.92

Crystality Plugin 0.92


Crystality Plugin consists of XMMS plugin and stdin/stdout plugin. more>>
Crystality Plugin consists of XMMS plugin and stdin/stdout plugin. It was written for realtime remastering of sound from mp3 files.
You will need a reasonably good stereo and a good ear to notice quality
improvement, otherwise this is not for you.

This plugin tries to patch mp3 format flaws, not a poor audio hardware! Yes, you should be able to hear well enough (sorry) - for some of my friends plugin is a cool thing, while the others does not hear nothing but echo and stereo expander (well, you will hear every effect if you set it to the maximum, but it will not sound nice).

Crystality was written for 16bit 44.1kHz stereo sound and may give strange results
with other sound formats.

Damian Hodgkiss sent me a quick port for Winamp 2.x. I have not tried it yet, but you can get it (cr-quick-winamp-port.zip).

This plugin does mainly four things (and some minor tricks):

1. Adds some sounds in very high frequency range. Most of the mp3s in The Net are flawed with a 16(15?) kHz cutoff. Even these ones compressed at high bitrates. This spectrum hole is audible and very unpleasant. This plugin helps a bit. Old mp3s made from the vinyl or the magnetic tape may also sound better with these "steroids". For old mp3s youll probably need to set filter to 0.1.

2. Adds some even harmonic distortions (actually nonlinearity), that sounds nice. Valve amps introduce even harmonic distortions (although differnt way) Look at audiophile pages for more info (well, mp3 format is not an audiophile stuff at all, but... welcome to the real world...).

3. Adds simple, but nice 3D echo (concert hall or church like). Most of echo plugins sounds too hard and aggresively for me. This one does not.

4. Extends stereo.

USING:

There are currently two versions of plugin - XMMS plugin and stdin/stdout. Stdin/out plugin is completly independent of XMMS plugin. It even stores its configuration in a separate file (~/.crystalityrc). Stdin/out plugin is alpha code, so some features are missed. You cannot reopen configuration dialog after closing without restarting plugin, there are no "save config", "load config" buttons. Configuration is loaded automatically on startup and saved on exit, either on normal finish or ^C. You can disable GUI with -g option (useful in scripts).

Because this plugin adds some sounds at high frequencies, you will probably need to decrease treble level on your amplifier. Plugin does not perform normalization, so you should slightly decrease signal level in XMMS equalizer (NOT volume slider on the main panel). Setting sliders to the maximum is generally a bad idea (well, except the filter, where that setting is useful).

PERFORMANCE:

It eats about 15% of CPU on my AMD K6-2/400 and optimization is still possible, this is not highly optimized code.

INSTALLATION:

Distribution contains binary version of XMMS plugin library and stdin/stdout plugin executable (Linux i586, glibc 2.1.3). You may copy plugin library file (libcrystality.so) into XMMSs Effect directory and executable (crystality-stdio) to /usr/local/bin or any location you prefer. For default locations simply type:

make install

and thats it.
You may also build crystality from the source.

make buildinstall

typed as root in the source directory should be all you have to do.

This plugin was my first small step in gtk programming, so dont expect any wonders, GUI is actually a quick hack to hardcoded settings. I am not a GUI programmer.

<<less
Download (0.032MB)
Added: 2006-04-20 License: GPL (GNU General Public License) Price:
1291 downloads
TeleKast 1.0.0.13 Alpha

TeleKast 1.0.0.13 Alpha


TeleKast is an application you can use for your school, church or any organization which needs features like a script editor. more>> <<less
Download (0.51MB)
Added: 2007-04-10 License: MPL (Mozilla Public License) Price:
931 downloads
Mobile::Messaging::ParlayX 0.0.2

Mobile::Messaging::ParlayX 0.0.2


Mobile::Messaging::ParlayX is a Perl interface to ParlayX OSA. more>>
Mobile::Messaging::ParlayX is a Perl interface to ParlayX OSA.

SYNOPSIS

use Mobile::Messaging::ParlayX;

Mobile::Messaging::ParlayX is an interface to ParlayX web service by Sony Ericsson for SMS and MMS messaging, among other things. This being a Web Service SOAP::Lite would probably be better suited to the task, but I decided to stick with LWP::UserAgent, HTTP::Request and XML::LibXML until things in SOAP::Lite stabilize (it is currently under rewrite as far as I know) and I have more time (not that this will happen anytime soon).

Besides, I cannot fully grasp ParlayX just yet, thanks to inadequate documentation and JAVA only code samples for it. Anyway, you need LWP::UserAgent, HTTP::Request and XML::LibXML for this module to work. Most are in the standard distribution already, but any of them are available at your local CPAN mirror.

I tried not to stray too far off the ``native JAVA names of methos and properties, but chances are some differences exist.

<<less
Download (0.010MB)
Added: 2007-06-08 License: Perl Artistic License Price:
872 downloads
Community Content Management 1.0

Community Content Management 1.0


Community Content Management project consists of a light-weight CMS, designed for communities. more>>
Community Content Management project consists of a light-weight CMS, designed for communities.
Community Content Management is a light-weight CMS, which is designed for small communities, such as churches, schools, and neighborhood watch groups.
It allows someone with relatively little knowledge of the Internet to publish news stories and events. It sets archive/publishing dates, allowing groups to write press releases/articles about events before they happen.
Its output conforms to XHTML 1.0 and uses CSS 2, and its configuration comprises one file, which sets the site title, database, host, and meta tags.
Enhancements:
- Login - code changed so correct variables are passed to login script :)
- Search - Search Engine Added
- Articles - new lines (n) are replaced with "
" instead of " "
<<less
Download (MB)
Added: 2007-01-22 License: GPL (GNU General Public License) Price:
1009 downloads
Joomla! Content Management System JumpBox 1.0

Joomla! Content Management System JumpBox 1.0


Joomla! Content Management System JumpBox package contains includes Joomla! version 1.0.12 more>>
Joomla! Content Management System JumpBox package contains includes Joomla! version 1.0.12

Joomla! is one of the most powerful Content Management Systems in existence and is used widely around the world. Joomla! can be used to build a wide variety of web sites including: corporate web sites, small business web sites, non-profit organization web sites, school and church web sites, personal and family sites, community portals and just about any other kind of web site you can think of.

With JumpBox we’re looking to do the same for server based software. We simplify what has traditionally been complex and deliver server based Open Source applications to an audience that otherwise would be put off by the technical burdens of the old way of doing things.

An integrated software stack in a virtual appliance

A JumpBox bundles the operating system, application and all application dependancies into a single installable module that’s easily deployed using virtualization software from VMWare, Parallels or Xen

Easy to Install

A JumpBox allows you to install a complex server based application without having to know anything about Linux, databases or the command line. You just download, extract the archive and open the application with your virtualization software. Further setup and configuration is handled through a simple web interface.

Simple to manage

The JumpBox platform is pre-configured, tuned and secured to minimize the management needs of the application.

Runs anywhere

Mac OS X, Linux, Windows it doesn’t matter. Thanks to the use of virtualization, JumpBox applications run easily on all the most popular operating systems.

Painless to upgrade

With a JumpBox and the JumpBox Assurance program (launching Q2 2007), management of the system is simple and efficient. Updates to the entire software stack are handled automatically by the platform with minimal user interaction.

Quick to move

With a JumpBox all the application code, data and the runtime are bundled together into a single directory that can easily be moved between systems or even across platforms. This allows you to start using an application by just running it on your desktop. Then when you’re ready you can open it up to the rest of the network and either continue running it on your desktop or easily move it to the server at any time. It doesn’t even matter if the server is running a different operating system, with a JumpBox everything is self contained.

<<less
Download (134.1MB)
Added: 2007-07-25 License: Free To Use But Restricted Price:
822 downloads
Gcal 3.01

Gcal 3.01


Gcal is a program for calculating and printing calendars. more>>
Gcal is a program for calculating and printing calendars. It displays hybrid and proleptic Julian and Gregorian calendar sheets, respectively for one month, three months, or a whole year.
It also displays eternal holiday lists for many countries around the globe, and features a very powerful creation of fixed date liststhat can be used for reminding purposes. Gcal can calculate various astronomical data and times of the Sun and the Moon for pleasure at any location, precisely enough for most civil purposes.
Gcal supports some other calendar systems, for example, the Chinese and Japanese calendars, the Hebrew calendar, and the civil Islamic calendar, too.
English user manual included; German user manual included.
Main features:
- Some special calendar sheet formats.
- Calendar sheets can be provided with week numbers.
- Variable number of year calendar sheet blocks.
- Adjustable ordering of displayed dates.
- Adjustable period of Gregorian Reformation.
- Proleptic Julian and Gregorian calendars.
- Adjustable highlighting of holidays and actual day.
- Variable starting day of week.
- Output of day-of-year numbers and concatenated day and day-of-year numbers.
- Allows user-defined ordering of the date elements.
- Output of fiscal years.
- Output of lists or ranges of months or years.
- Sorted output of selectable country/territory specific eternal holiday lists (mostly complete) for nearly *all* countries around the globe, which are generated automatically.
- Sorted output of Christian Western churches calendar holidays, Orthodox Christian Eastern churches old and new calendar holidays, Hebrew calendar holidays, Islamic civil calendar holidays (since AD 622), Persian "Jalaali" calendar holidays, Chinese and Japanese calendar holidays (since AD 1645), more "other" calendar system holidays, multicultural New Years Days, and start of "other" calendar system months, which are also generated automatically.
- Sorted output of fixed date lists which can be defined and created in a highly flexible manner.
- Allows filtration of fixed dates by using regular expressions and other built-in methods.
- Allows the use of date and text variables and basic operations on them.
- Some gimmicks like solar and lunar eclipse time, sunrise/sunset plus a lot of other Sun based data and times, Moon phase, Full and New Moon time, moonrise/moonset plus a lot of other Moon based data and times, zodiacal markers, equinox and solstice, air line distance between two geographic point locations plus course angles, biorhythm et cetera...
- Fixed dates can be stored in several files.
- Nearly unlimited nesting level of include files.
- Nearly unlimited internal text and table lengths.
- Default options can be stored in the `GCAL environment variable.
- Options and commands stored in response files can be preloaded.
- Uses either an external pager or a simple built-in pager.
- Detailed Texinfo reference manual.
- German, English and American program version by default.
- Supports various computer platforms.
- GNU `gettext internationalization technology, which allows the use of message catalogs for most native languages.
- GNU `autoconf(iguration) installation technology.
- Supports both UN*X short-style options and GNU long-style options.
<<less
Download (2.3MB)
Added: 2006-06-08 License: GPL (GNU General Public License) Price:
1236 downloads
PrayerWall 60912-2115

PrayerWall 60912-2115


This script is great for churches: put a prayer wall up on your web site. more>> This script is free for a limited time.Does your church web site have a way for people to post prayer requests? If not, this script may be a nice enhancement.With the integrated RSS feed, people can subscribe using their RSS reader and always have the latest prayer requests available.Be alerted everytime there is a new request. Even allow the whole church to subscribe to requests (using a group, such as Yahoo groups). When there are new requests, the group gets an email and the RSS feed is automatically updated.Theres a sample script running in the test area, so give it a try. Login as admin/password to view the adminsration area.<<less
Download (10KB)
Added: 2009-04-05 License: Freeware Price: Free
201 downloads
Groupy 0.58

Groupy 0.58


Groupy is an open source content management system that allows groups within an organization to share multi-lingual content. more>>
Groupy project is an open source content management system that allows groups within an organization to share multi-lingual content. Groupy provides a unique tool for organizing diverse content types (Articles, News, Files, Images, Events, etc...) in a rich editing environment similar to a wiki. I want Groupy to be great blog, a great file and image gallery, a great on-line calendar, and mailing list manager all with an easy to use consistant interface.
Groupy comes from several years of working with, writing plug-ins and skins for several other content management systems. In particular wordpress, joomla, and mediawiki. I found it odd that in order to set up what I considered a fully functional church website I needed multiple installations of these systems, and that integrating them was extremely painful. I also noticed that there was significant functional overlap present and that in general there could be opportunity for much code sharing. Thus I have undertaken the daunting task to bring them together.
Main features:
- Highly extensible plug-in architecture.
- Flexible skin system.
- All strings fully internationalized.
- Infrastructure for multi-language sites.
- Organized code base with minimal global functions.
- All content types extend a common base class.
- Revision history kept for all content.
- Text body for all content allows for links to other content.
- Ability to email content to subscribed users.
- Ability to comment on content
Enhancements:
- The rich editor was switched to use tinymce, which is far more robust and full-featured.
- A dialog was added in the rich editor to search for and insert content to embed.
- XML Feed support (RSS 1.0, RSS 2.0, ATOM 0.3, ATOM 1.0) was added for every group.
- Setup now allows a user to specify a superuser login.
- Several performance enhancements were made.
- The documentation was updated.
- Some fixes were made.
<<less
Download (0.10MB)
Added: 2007-07-07 License: GPL (GNU General Public License) Price:
839 downloads
PDFdirectory 1.0

PDFdirectory 1.0


PDFdirectory is a PHP/MySQL creation of a printable directory in PDF format. more>>
PDFdirectory project is designed to save time and frustration in the process of creating a printable directory for your organization. Much of the difficulty is in the exchange of information from group members to whomever is assigned the task of creating the directory.
This difficulty is overcome by having select members enter member data into a database, defining the organizations hierarchy and managing page insertion into the hierarchy. The member information will be auto-generated in the final document. Uses could be for church groups, sports leagues etc.
Main features:
General:
- Template support for auto-generation of member data.
- Standard PDF output or booklet format.
- Choice of various languages.
- Create pages offline in your favorite desktop app.
- Automatic generation of Table of Contents and Index.
- Gutter support.
Administration:
- Assigning of users.
- Restrict users as to what they can access.
- Defining the organizations structure and assigning of enumerations reflecting that structure.
User level access:
- Maintaing the database of Members.
- Create custom pages and define their location in the document.
- Assigning members to there groups.
Enhancements:
- Security was improved with SQL injection filtering and encrypted passwords.
<<less
Download (0.26MB)
Added: 2006-01-10 License: GPL (GNU General Public License) Price:
1382 downloads
Class::HPLOO 0.23

Class::HPLOO 0.23


Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod. more>>
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}) ;

<<less
Download (0.027MB)
Added: 2007-06-09 License: Perl Artistic License Price:
867 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 2
  • 1
  • 2