Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by LanX (Saint)
on Jul 15, 2020 at 00:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found