$pass = 'blue'; $pass =~ s/.{4}/($i=1+length($pass)).$pass.$i/e; [download]
In reply to Re^4: declaring variable by sh1tn in thread declaring variable by Anonymous Monk