Syntax of using Perl5 modules?

2005-05-24 Thread Autrijus Tang
So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): use Digest--perl5; my $cxt = Digest.SHA1; $cxt.add('Pugs!'); # This prints: 66db83c4c3953949a30563141f08a848c4202f7f say $cxt.hexdigest; This includes the "Digest.pm" from Perl 5. DBI.pm, CGI.pm etc will

Re: Syntax of using Perl5 modules?

2005-05-24 Thread Darren Duncan
At 12:06 PM +0800 5/25/05, Autrijus Tang wrote: So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): use Digest--perl5; my $cxt = Digest.SHA1; $cxt.add('Pugs!'); # This prints: 66db83c4c3953949a30563141f08a848c4202f7f say $cxt.hexdigest; This includes the "Di

Re: Syntax of using Perl5 modules?

2005-05-25 Thread Terrence Brannon
Autrijus Tang <[EMAIL PROTECTED]> writes: > So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): > > use Digest--perl5; > > my $cxt = Digest.SHA1; > $cxt.add('Pugs!'); > > # This prints: 66db83c4c3953949a30563141f08a848c4202f7f > say $cxt.hexdigest; > > This i

Re: Syntax of using Perl5 modules?

2005-05-25 Thread Dave Whipp
Autrijus Tang wrote: So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): use Digest--perl5; my $cxt = Digest.SHA1; $cxt.add('Pugs!'); # This prints: 66db83c4c3953949a30563141f08a848c4202f7f say $cxt.hexdigest; This includes the "Digest.pm" from Perl 5.

Re: Syntax of using Perl5 modules?

2005-05-25 Thread Rod Adams
Autrijus Tang wrote: So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build): use Digest--perl5; my $cxt = Digest.SHA1; $cxt.add('Pugs!'); # This prints: 66db83c4c3953949a30563141f08a848c4202f7f say $cxt.hexdigest; This includes the "Digest.pm" from Perl 5. DBI.

Re: Syntax of using Perl5 modules?

2005-05-26 Thread Adam Kennedy
On the migration front, when someone ports Digest.pm to Perl6, I get a "free" upgrade, assuming the module author was kind enough to up the version number. You are making a pretty huge assumption here that whoever has a namespace in p5 CPAN has first dibs at the P6 namespace of the same name,

Re: Syntax of using Perl5 modules?

2005-05-26 Thread Rod Adams
Adam Kennedy wrote: On the migration front, when someone ports Digest.pm to Perl6, I get a "free" upgrade, assuming the module author was kind enough to up the version number. You are making a pretty huge assumption here that whoever has a namespace in p5 CPAN has first dibs at the P6 names

Re: Syntax of using Perl5 modules?

2005-05-27 Thread Adam Kennedy
You get all those possibilities whenever you install any new version of a module you get from someone else, regardless of a p5->p6 hop. In p6, when you say "use Digest;", you are specifically asking for what p6 considers the "latest" version. In p5, it was "first match on libpath". Except that

Re: Syntax of using Perl5 modules?

2005-05-27 Thread Rod Adams
Adam Kennedy wrote: You get all those possibilities whenever you install any new version of a module you get from someone else, regardless of a p5->p6 hop. In p6, when you say "use Digest;", you are specifically asking for what p6 considers the "latest" version. In p5, it was "first match on