-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of Regular Expressions Contained in a Constant with a Sigil #5079
Comments
From jpolanik@nc.rr.comConstants are not required to have a sigil but apparently they may. Unfortunately, when a constant with a sigil contains a regex pattern, The attached file show that a regex pattern that should detect the file Identical results were obtained on Linux (Ubuntu 12.04) and Mac OS X 10.10.5 Build information Linux $ perl6 -version Mac $ perl6 -version Thanks, Joseph Polanik |
From jpolanik@nc.rr.com#!/usr/bin/env perl6 # Constants are not required to have a sigil. When they have a sigil and constant $sepreg = /(<[\\\/]>)/; my $filenameW = "c:\\g\\b.mp4"; say "============= Looking for a Windows separator: \\"; # Gives correct result # Gives correct result # Gives correct result # # The match is made but $/ doesn't get populated # Gives correct result # Gives correct result # Gives correct result |
From @zoffixznetStill present today: <Zoffix> m: my $sepreg = rx/(<[\\/]>)/; my $filenameW = "c:\\g\\b.mp4"; $filenameW ~~ |
From @dogbert17On Fri, 05 Aug 2016 18:04:36 -0700, cpan@zoffix.com wrote:
Fixed with commit rakudo/rakudo@5ac593e |
The RT System itself - Status changed from 'new' to 'open' |
From @dogbert17On Tue, 13 Mar 2018 14:50:17 -0700, jan-olof.hendig@bredband.net wrote:
Roast test added with commit Raku/roast@f2d422f |
@dogbert17 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127352 (status was 'resolved')
Searchable as RT127352$
The text was updated successfully, but these errors were encountered: