Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Should I use v5.10 because of named groups?

by Marshall (Canon)
on Apr 14, 2021 at 22:44 UTC ( [id://11131302]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Should I use v5.10 because of named groups?
in thread Should I use v5.10 because of named groups?

Just a nit, in case you didn't know, but you can do the $1,$2,$3,$4 assignment in the if statement:
if ( my ($type, $valid, $name, $coment) = $_ =~ m/^([01]):([01]):([^:]+):([^:]+)$/ ){}
I don't think this makes much difference. I just have a coding preference to avoid $1, etc.
I made 2 source lines because of code line length limits here. In actual code, I'd probably just have one line.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found