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

Re^2: Why does default $_ only work

by LanX (Saint)
on Aug 10, 2020 at 19:39 UTC ( [id://11120556]=note: print w/replies, xml ) Need Help??


in reply to Re: Why does default $_ only work
in thread Why does default $_ only work

try

if ( $selection  =~  /(.)\1/ )

see also

perlop#Binding-Operators

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found