Leser: 1
|< 1 2 >| | 14 Einträge, 2 Seiten |
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <-- HERE l/
1 2 3 4
#add if ($permissions =~ /\+ ([a-z])/xms ) { $new_permissions = qq{$old_permissions$permissions}; }
1
2
$ perl -wle ' if ( "+w" =~ m/\+ ([a-z])/xms ) { print "yo"; } else { print "no"; }'
yo
1
2
C:\>perl -Mstrict -wle " if ( '+w' =~ m/\+ ([a-z])/xms ) { print 'yo'; } else { print 'no'; }"
yo
1
2
$ perl -Mstrict -wle ' if ( "+w" =~ m/\+ ([a-z])/xms ) { print "yo"; } else { print "no"; }'
yo
1
2
~$ perl -Mstrict -wle 'my $re = "\+ ([a-z])"; if ( "+w" =~ m/$re/xms ) { print "yo"; } else { print "no"; }'
Quantifier follows nothing in regex; marked by <-- HERE in m/+ <-- HERE ([a-z])/ at -e line 1.
|< 1 2 >| | 14 Einträge, 2 Seiten |