Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Assign Contains RegEx WTF??

by JavaFan (Canon)
on May 20, 2009 at 10:31 UTC ( [id://765175]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Assign Contains RegEx WTF??
in thread Assign Contains RegEx WTF??

Yes, but where do you stop? At the end of that road is:
$i++; # Add 1 to $i
IMO, if you have to document the syntax, you should rewrite the code. Now, I don't think:
($copy = $orig) =~ s/PATTERN/REPLACEMENT/;
is obscure. It shouldn't need comments. If you feel you're among novices or bad programmers, still don't comment the code. Rewrite it in baby steps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found