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
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
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
"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
> 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
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
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
'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
> 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
> 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
remember
that it's Tk::MARC::record and MARC::Record, which will be confusing.
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
";
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 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
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
7; );
my @fields = $field->subfields();
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
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
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
deprecated/obsolete/no longer developed?
Yes, use MARC::Record going forward.
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
I don't, beat me.
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
-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
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
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
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
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
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
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
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
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
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
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
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 =>
Please also investigate the Business::ISBN module.
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
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
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
34 matches
Mail list logo