-
Notifications
You must be signed in to change notification settings - Fork 556
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
Stringification doesn't seem to apply to regexp arguments #831
Comments
From dhd@plcom.on.caHi, Applying capturing regular expressions to references does something [dhd@willow]~ $ perl -le '$f=[1]; print $f; while ($f =~ /(\w+)/g) {print $1}' It's evidently failing to stringify the scalar. As another example (and this [dhd@willow]~ $ perl -le 'package Foo; use overload q("") => sub { "FOO" }; $f = bless [1], "Foo"; print "stringify -> $f"; while ($f =~ /(\w+)/g) {print $1}' This is with the Debian GNU/Linux package of Perl 5.005_03. Perl Info
|
From [Unknown Contact. See original ticket]David Huggins-Daines writes:
Evidently, not, as omiting //g shows. Something is fishy with pos() Ilya |
From [Unknown Contact. See original ticket]Another... David Huggins-Daines writes:
Evidently, not, as omiting //g shows. Something is fishy with pos() Ilya |
@gbarr - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1759 (status was 'resolved')
Searchable as RT1759$
The text was updated successfully, but these errors were encountered: