in reply to [Perl -> JS] Accessing regex match in Perlito

I do not have a Perlito around. Does ($match) = "abc" =~ m/(a)/; work by chance?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: [Perl -> JS] Accessing regex match in Perlito
by LanX (Saint) on Dec 05, 2013 at 17:24 UTC
    > I do not have a Perlito around.

    It works within your browser

    > Does ($match) = "abc" =~ m/(a)/; work by chance?

    well I tried this but $match is 1 now... =)

    NB: I don't intend any bashing!

    It's a great project which needs more attention and feedback.

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      I had never heard of perlito, LanX. It's great. Thanks for pointing it out. +'s to you. :)

      --Chris

      #!/usr/bin/perl -Tw
      use Perl::Always or die;
      my $perl_version = (5.12.5);
      print $perl_version;