in reply to Re^3: Assign Contains RegEx WTF??
in thread Assign Contains RegEx WTF??
IMO, if you have to document the syntax, you should rewrite the code. Now, I don't think:$i++; # Add 1 to $i
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.($copy = $orig) =~ s/PATTERN/REPLACEMENT/;
|
|---|