Re: Passing options to subroutines and modules! (First time writing a module!)

2007-03-12 Thread Chas Owens
On 3/11/07, Benct Philip Jonsson <[EMAIL PROTECTED]> wrote: snip :use HTML::Entities; : :sub transliterate ($;$){ my($text,$option) = @_; : :# Begin troblesome part! :if($option && ref $option ne 'HASH'){ :die "The second argument to transliterate() must" :

Passing options to subroutines and modules! (First time writing a module!)

2007-03-12 Thread Benct Philip Jonsson
Dear all! I'm writing a module (strictly for in-house use!) for converting an in-house legacy encoding -- from the time when you had to fake the ordinary alphabet + whatever special characters you needed onto the 223 characters of whatever 8-bit encoding your OS happened to support -- to Unicode.

subroutines and modules

2004-09-29 Thread DBSMITH
Perl'ers I am reading Object Oriented Perl pages 52 and 53 for setting up a module. It is telling me in order to use a routine from a different file you have to 1) choose a lib directory 2) export PERL5LIB=.../.../.../ use lib /usr/local/perl/my.pl 3) created nested subdirs for each compon