http://qs321.pair.com?node_id=11119332


in reply to Why is $a.$b not = "$a$b"?

Hint: When in doubt use B::Deparse with option -p for parenthesis

d:\exp\version>perl -MO=Deparse,-p -E"$a=A;$b=B;print 'Matches!' if $a +.$b =~ /C/" use feature 'current_sub', 'evalbytes', 'fc', 'postderef_qq', 'say', ' +state', 'switch', 'unicode_strings', 'unicode_eval'; ($a = 'A'); ($b = 'B'); (($a . ($b =~ /C/u)) and print('Matches!')); -e syntax OK

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Why is $a.$b not = "$a$b"?
by tel2 (Pilgrim) on Jul 15, 2020 at 00:33 UTC
    OK, thanks Rolf.

    tel2
    (Also a bit (or even a byte) addicted to the Perl programming language, even if it confuses the megabytes out of me at times.)