He're ste idea:
I have a folder with a number of files. Now I want the script to open every file and do something with it (let's say print something in). What "trick" do I use so the script will do this, but the number of file sis not allways the same?
The real problem is how to "split" a number, let's say "100" to numbers "1, 2, 3, ..., 99, 100". I want to make an array @numbers with all these numbers:
@numbers = "1, 2, 3, ..., 99, 100";
and if the number of files is 200
@numbers = "1, 2, 3, ..., 199, 200";
The number of files is constantly growing so I can't write the @numbers in script, because it changes all the time (new values are added).
Any ideas?
Thanks!
I have a folder with a number of files. Now I want the script to open every file and do something with it (let's say print something in). What "trick" do I use so the script will do this, but the number of file sis not allways the same?
The real problem is how to "split" a number, let's say "100" to numbers "1, 2, 3, ..., 99, 100". I want to make an array @numbers with all these numbers:
@numbers = "1, 2, 3, ..., 99, 100";
and if the number of files is 200
@numbers = "1, 2, 3, ..., 199, 200";
The number of files is constantly growing so I can't write the @numbers in script, because it changes all the time (new values are added).
Any ideas?
Thanks!