Re: Trying to use Perl5 modules (documented on wiki)

2006-09-17 Thread Mark Stosberg
Audrey Tang wrote: > > 在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: > >> In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: >>> I am trying to find out how to use (in perl6) perl5 modules that >>> contain subroutines. >> >> Imports from Perl 5 modules don't currently work. > > Actually,

Re: Trying to use Perl5 modules

2006-09-13 Thread Audrey Tang
在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: I am trying to find out how to use (in perl6) perl5 modules that contain subroutines. Imports from Perl 5 modules don't currently work. Actually, explicit imports do work (as of a coup

Re: Trying to use Perl5 modules

2006-09-13 Thread Richard Hainsworth
Where is .can documented? I saw .can in one of the examples in the pugs distribution, but I didnt know where it came from, viz., was it related to perl6 or the module that had been imported. Not quite sure how the following two statements can be consistent: 'imports from Perl5 modules dont w

Re: Trying to use Perl5 modules

2006-09-10 Thread Trey Harris
In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: I am trying to find out how to use (in perl6) perl5 modules that contain subroutines. Imports from Perl 5 modules don't currently work. You can workaround this using .can, see below. use perl5:Time::gmtime; my $gm = gmtime(); p

Trying to use Perl5 modules

2006-09-10 Thread Richard Hainsworth
I am trying to find out how to use (in perl6) perl5 modules that contain subroutines. Here are two scripts from standard modules. Both work in perl5, but I cant find a way to use them using pugs (I am using the Debian package with version 6.2.10-4build1 on GNU/Linux/Ubuntu) use strict; use