Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perl 6, Object Orientation and Melting Brains

by CountZero (Bishop)
on Mar 27, 2005 at 21:12 UTC ( #442705=note: print w/replies, xml ) Need Help??


in reply to Perl 6, Object Orientation and Melting Brains

As Larry Wall wrote in Apocalypse 1:
I hereby declare that a package declaration at the front of a file unambiguously indicates you are parsing Perl 5 code. If you want to write a Perl 6 module or class, it'll start with the keyword module or class.
And in Synopsis 1 it is stated:
# Migration is important. The perl interpreter will assume that it is being fed Perl 5 code unless the code starts with a "class" or "module" keyword, or you specifically tell it you're running Perl 6 code in some other way, such as by:
#!/usr/bin/perl6 use v6.0; v6;
So it looks that you can switch to Perl6 and still use most (if not all) of your Perl5 code and coding habits and slowly make the transformation module by module when you get more confident in your Perl 6 skills.

And as for OO:

If you want to treat everything as objects in Perl 6, Perl will help you do that. If you don't want to treat everything as objects, Perl will help you with that viewpoint as well. (Synopsis 1)

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2022-01-25 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?