develooper Front page | perl.beginners | Postings from July 2008

how to change string to scalar

Thread Next
From:
loody
Date:
July 5, 2008 21:49
Subject:
how to change string to scalar
Dear all:
I try to update the end of my file index by 1 per day.
ex:
     file_0   -->  file_1
     file_10  --> file_11

I know I can do some stupid things as writing 10 elseifs to determine
right now value and write back it after adding 1.
But is there some faster way to do so?
Like some default functions or modules I can take advantage of?
thanks for your help,
miloody

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About