Re: perl OOP question

2003-06-23 Thread Andy Lester
e topof my head) package ISO::types::ILLString; use Exporter; our @EXPORT = qw( ILLString ); sub ILLString { # blah blah blah } 1; Now, whenever you say "use ISO::types::ILLString", you get ILLString imported into your namespace. xoxo, Andy -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: perl OOP question

2003-06-24 Thread Andy Lester
The function is still Business::ISBN::is_valid_checksum, but there's (effectively) an alias to it from main::is_valid_checksum(). xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: creating a standard Perl module

2003-09-30 Thread Andy Lester
At 5:09 PM -0500 9/30/03, Eric Lease Morgan wrote: How do I create a standard Perl module intended for distribution? Steal. Find a good distribution (say, MARC::Record) and adapt from there. I never use h2xs any more. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: test for an array

2003-09-30 Thread Andy Lester
"Got back three items" ); is( $vars[0], "Smith", "Checking name" ); is( $vars[1], "HR128", "Checking homeroom" ); ok( !$vars[2], "Checking that Smith is NOT the principal" ); Howzat? xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: [patch] Accept Letters as Indicator

2003-11-19 Thread Andy Lester
> Perhaps, but we've yet to have anyone complain :) That's pretty much the strategy we've had on features in MARC::Record, and my strategy for any module: If someone needs it, I'll put it in. If they don't, I won't. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

MARC::Record 1.33 is out

2003-11-24 Thread Andy Lester
tar.gz has entered CPAN as file: $CPAN/authors/id/P/PE/PETDANCE/MARC-Record-1.33.tar.gz size: 113750 bytes md5: c7fc3b519f7f158494f6ec6e92883f8e No action is required on your part Request entered by: PETDANCE (Andy Lester) Request entered on: Tue, 25 Nov 2003 04:26:56 GMT Request completed

Re: MARC::Record in CVS and testing

2003-11-25 Thread Andy Lester
so you should be able > to learn from it. Thanks. I've got some slides from presentations I've done on testing, too. http://www.petdance.com/perl/automated-testing/ http://www.petdance.com/perl/large-project-testing.pdf xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

MARC::Record v1.34

2003-12-16 Thread Andy Lester
'warn' elements weren't quoted. - warnings_on and strict_on should now be respected. Have fun! xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Problems with MARC::Batch

2004-01-13 Thread Andy Lester
> Undefined subroutine &Marc::Batch called at C:\MARCPERL\test1.pl line 6. > > ## create a MARC::Batch object. > use MARC::Batch; > my $batch = Marc::Batch('USMARC', 'file.dat'); It's MARC::Batch, not Marc::Batch. Perl is case-sensitive

Re: MARC-editing Perl/Tk widget

2004-01-16 Thread Andy Lester
> If anyone is interested, drop me a note ([EMAIL PROTECTED] > - minus the SPAMLESS) and I'll send you the modules. Or we could just reply to the email... :-) Yeah, I'm interested. Send that baby on over. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: MARC-editing Perl/Tk widget

2004-01-16 Thread Andy Lester
remember that it's Tk::MARC::record and MARC::Record, which will be confusing. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: HTML::Parser walkthrough?

2004-01-28 Thread Andy Lester
"; Even better, since you know they need to be digits: $html =~ /Temperature.* (\d+) F \((\d+) C\).* Dew Point/s or die "0\n0\n"; And you can leave off the m at the beginning. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Using as_string() in Marc::batch

2004-02-25 Thread Andy Lester
re the _x. All that was in C, before object-oriented programming (at least in our shop), so these days we'd probably have a MARC::Field::650 subclass that overrides the as_string() method. That could get pretty hairy for all the potential tags running around, especially since 600 and 650 and

Re: Using as_string() in Marc::batch

2004-02-25 Thread Andy Lester
Record will be relying on MARC::Descriptsions. I'd want that rolled into it. Really, I don't see it as a description thing, although it does affect display. Of course, I haven't looked at M::D more than cursorily... xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Enhancement request for MARC::Record

2004-03-04 Thread Andy Lester
7; ); my @fields = $field->subfields(); xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: automagically create browsable POD pages

2004-04-01 Thread Andy Lester
e-Pod/) > Might look at DocSet on CPAN. perl.apache.org is generated with it from > pod files. All the perl.org sites (like qa.perl.org which I currently maintain) are done with Template Toolkit, and much of qa.perl.org is Pod that changes automagically behind the scenes. xoa -- Andy Leste

Re: STDIN as well as command line input

2004-04-26 Thread Andy Lester
t. Use the magic filehandle. See my talk "A Field Guide To The Perl Command Line" on http://petdance.com/perl/. It was also an article in The Perl Journal a few months back. I'll be presenting the talk at YAPC this year. http://www.yapc.org/America/ xoa -- Andy

Re: MARC.pm questions

2004-05-14 Thread Andy Lester
deprecated/obsolete/no longer developed? Yes, use MARC::Record going forward. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: MARC Lint: Is the MARC21 886 definition in Lint.pm incorrect ?

2004-07-26 Thread Andy Lester
I don't, beat me. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Fwd: [CPAN Upload: P/PE/PETDANCE/MARC-Record-1.39_01.tar.gz: upload@pause.perl.org]

2004-07-26 Thread Andy Lester
-1.39_01.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PE/PETDANCE/MARC-Record-1.39_01.tar.gz size: 116742 bytes md5: 8ff56d19f9d4beaf028f1e31e9dfc28a No action is required on your part Request entered by: PETDANCE (Andy Lester) Request entered on: Tue, 27 Jul 2004 00:02:34 GMT

Re: [Koha] Cannot add Item - server error

2004-08-13 Thread Andy Lester
disable die on > error on subfields for <10 fields. That would break a whole lot of stuff. MARC::Record assumes no subfields on tags < 010 everywhere. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: delete_subfields()

2004-08-18 Thread Andy Lester
sed a lot in production, > delete_subfields() should be the one to change. Or they could be smart enough to Do The Right Thing. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: getting subjects out

2004-09-09 Thread Andy Lester
undefined > value." Your second $f650 is actually $650. Do you have "use warnings" and "use strict" on? xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Module naming (MARC::Errorchecks, MARC::Lintadditions, MARC:: Lint )

2004-10-11 Thread Andy Lester
eginner, I know little > > or nothing about how this would work. Do I need to sign up for a Sourceforge > > account? Do I need to learn how to use a CVS client program? If you want to write the code, and then send me diffs against the latest MARC::Lint source, that would work fine. xoa

Re: Future of MARC::Lint

2004-12-16 Thread Andy Lester
hich I've wrapped up in HTML::Tidy. It's a very simple wrapper without all the configurability of libtidy, and I get a request every week for that configurability. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

MARC::Lint 1.4, MARC::Record 1.39_02

2004-12-21 Thread Andy Lester
CPAN, as a prep for 1.40. If folks can test it for me, that'd be swell. Thanks, Andy -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: MARC::Record tests

2004-12-21 Thread Andy Lester
On Tue, Dec 21, 2004 at 05:27:06PM -0600, Bryan Baldus ([EMAIL PROTECTED]) wrote: > On Tue, Dec 21, 2004 at 9:47 AM Andy Lester ([EMAIL PROTECTED]) wrote: > >I've also released MARC::Record 1.39_02 to CPAN, as a prep for 1.40. If > >folks can test it for me, that'd b

Re: Module to read Isis data

2005-01-04 Thread Andy Lester
never needed ability to search Isis > files directly. It t/002_whatever throws many errors on Mac OS X. Line-endings? But I'm glad to see t/999pod.t. :-) xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: mailing lists vs. Google Groups (Usenet)

2005-03-23 Thread Andy Lester
is a trademark. The generic term is "mailing list." http://www.lsoft.com/corporate/legal.asp -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: diff and sed

2005-04-01 Thread Andy Lester
the first file to convert it into > the seconf file by running it through either sed or ed. You want diff for the first part, and patch for the second part. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: diff and sed

2005-04-01 Thread Andy Lester
On Fri, Apr 01, 2005 at 10:54:20AM -0600, John E Guillory ([EMAIL PROTECTED]) wrote: > This isn't a perl question explicitly (but I am a librarian!). And it's sort of Perl-related because Larry Wall wrote patch years and years ago, before Perl was invented. -- Andy Lester =>

Re: Check ISBN sub

2005-08-12 Thread Andy Lester
Please also investigate the Business::ISBN module. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: MARC::Record elementary question?

2005-08-29 Thread Andy Lester
t support. qr// is part of the language that is only in Perls from, I think, 5.005 forward. How did you install the module? It shouldn't have passed its tests. xoa -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: MARC::Record elementary question?

2005-08-29 Thread Andy Lester
modules is basically nonexistent; in this > case, I just copied the source code from the CPAN web site into the proper > files under perl/lib. That's probably not the right way to do it. It's not. If you're using ActiveState's Perl, use the PPM program. xoa -- Andy