in reply to Re: serialze text in a file
in thread serialze text in a file

Hey, I am learning regex now, it is like head-hammering at someplaces hehe...anyways I wanted to ask you, in this line you wrote,
if(s/(LKTA_mic)\d/$1$i/)
ok, I see that you are using backreferences to (LKTA_mic), but the way you used the variable $i, I mean, if these files were different, each one of them was a different identity in DATA, and each one of them had its unique number though the arrangement was not serial still, would they be physically re-arranged or ...according to what I could elicit here, they are merely being renamed instead? so the DATA file
Name - John filename "LKTA_mic4.cfg"; }
would be renamed to
Name - John filename "LKTA_mic1.cfg"; }
with contents intact and so on...?
##excuse my ignorance but slight not my attempts to learn##

Replies are listed 'Best First'.
Re^3: serialze text in a file
by toolic (Bishop) on Jul 08, 2009 at 16:04 UTC
    Yes, my code does a simple text substitution, replacing a single digit (0 through 9) with the value in the $i variable.