-
Notifications
You must be signed in to change notification settings - Fork 559
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
substitution operator with undef #13723
Comments
From [email protected]There was an idea that any operation on strings should stringify output Below test shows that there are inconsistencies with that rule. use strict; my $a = undef; my $b = undef;
|
From @shlomifHi Victor, On Wed Apr 09 02:13:52 2014, efimov@reg.ru wrote:
I was a bit unhappy with your program (due to the overriding of $a and $b as lexicals) so I refactored it into this: [CODE] #!/usr/bin/perl use strict; sub my_print if (defined $val) my_print('x', $x); my $y = undef; [/CODE] I am getting: [OUT] [/OUT] I don't think that's a bug. Hope it is clearer now. Regards, -- Shlomi Fish |
The RT System itself - Status changed from 'new' to 'open' |
From [email protected]2014-04-10 20:39 GMT+04:00 Shlomi Fish via RT <perlbug-followup@perl.org>:
Right.
My point was (see original report): 1) string operation should stringify undef (i.e. $x) - probably even
|
From @jkeenanOn Fri Apr 11 07:35:27 2014, efimov@reg.ru wrote:
So that makes this RT a request to modify Perl's current behavior.
I don't see a compelling case for change in either of those two points, and this is the kind of change that would likely cause problems for existing production code. Thank you very much. |
Migrated from rt.perl.org#121610 (status was 'open')
Searchable as RT121610$
The text was updated successfully, but these errors were encountered: