Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Why is $a.$b not = "$a$b"?

by LanX (Cardinal)
on Jul 15, 2020 at 00:26 UTC ( #11119332=note: print w/replies, xml ) Need Help??


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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11119332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2020-09-28 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (143 votes). Check out past polls.

    Notices?