Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - regex TODO - more qr() details
  • Loading branch information
fglock committed Apr 30, 2014
1 parent c7c242d commit 78ae779
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TODO-perlito5
Expand Up @@ -414,12 +414,16 @@ TODO list for Perlito5
$ perl -e ' "a" =~ /(.)/; print $1; { "b" =~ /x/; print $1; } print $1, "\n"; '
aaa

-- some qr() details
-- some qr() and quotemeta() details

$ perl -e ' my $x = qr/ \A x /x; my $y = qr/$x y \Q[z]/; use Data::Dumper; print Dumper $x; print Dumper $y; '
$VAR1 = qr/(?x-ism: \A x )/;
$VAR1 = qr/(?-xism:(?x-ism: \A x ) y \[z\])/;

$ perl -e ' print " a b \Q [ a \nn"; '
a b \ \[\ a\ \
n

-- bug: variable redeclaration does not work
-- javascript "var" erases the outer value within the whole current lexical scope
-- bug: "my" variables - this doesn't work as expected: my $v = $v
Expand Down

0 comments on commit 78ae779

Please sign in to comment.