develooper Front page | perl.perl6.language | Postings from May 2005

Syntax of using Perl5 modules?

Thread Next
Autrijus Tang
May 24, 2005 21:07
Syntax of using Perl5 modules?
Message ID:
So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build):

    use Digest--perl5;

    my $cxt = Digest.SHA1;

    # This prints: 66db83c4c3953949a30563141f08a848c4202f7f
    say $cxt.hexdigest;

This includes the "" from Perl 5., etc will
also work.

Now my question is, is my choice of using the "perl5" namespace indicator a 
sane way to handle this?  Is it okay for Perl 6 to fallback to using Perl 5
automatically?  Or should I use something else than "use" entirely?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About