in reply to Re^3: Extract a small part of a long sentence using regular expressions
in thread Extract a small part of a long sentence using regular expressions

"It's a dereference..."

Thank you for answering this question for me.

But i'm Karl and you are Choroba, isn't it?

"...(if ever)..write it"

May be - if you make so. But there is nothing wrong with the syntax i used to dereference a anonymous sub.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^4: Extract a small part of a long sentence using regular expressions

Replies are listed 'Best First'.
Re^5: Extract a small part of a long sentence using regular expressions
by choroba (Cardinal) on Dec 02, 2014 at 17:44 UTC
    No offence. I use anonymous subs sometimes, too. I just don't feel it's needed here:
    my %hash = map { $key++ => $_ } grep { $_ != 0 } map { split /,/ } $line =~ /action \( ( [^)]+ ) \) /gx;
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Thank you. It seems like that was the missing idiom :-)

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»