Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl 6 will primarily be:

by strat (Canon)
on Apr 22, 2002 at 11:45 UTC ( #161031=note: print w/replies, xml ) Need Help??

in reply to Perl 6 will primarily be:

I voted: "A mixed bag. Some ideas I love, some I fear"

I fear a little bit about performance; and as I very often work with huge datastructures, this might become essential. In production systems (win2k, linux, solaris), I still work with perl5.005_03, because it uses less memory than 5.6 or 5.6.1, and the runtime in many cases is much better, too.

If I've got more time, I'll try to extract a short example to show you by code ...

Another thing I'd like to see "fixed" in perl6 is the following beginner-trap:

my $string = "anything"; my $pattern = "\\"; $string =~ /$pattern/; # must be: $string =~ /\Q$pattern\E/

Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

Replies are listed 'Best First'.
Re: Re: Perl 6 will primarily be:
by Elian (Parson) on Apr 22, 2002 at 13:32 UTC
    Odds are that'll be fixed. Current thinking is that the contents of variables that are interpolated in will be treated as just plain strings, and not regex metacharacters.
      Where is this "current thinking" espoused? It seems like a serious mistake. How will we use user-supplied patterns in that case?
        It's not out yet, but it'll be in A5 if Larry decides to go that way. There'll be a switch or set of metacharacters to enable treating interpolated scalars as part of the regex. if he does. The ability's not getting taken away, just the default treatment may be switched. (Which is what people need and expect more often than not anyway)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2019-10-20 08:56 GMT
Find Nodes?
    Voting Booth?