in reply to Re: Changing a varaibale name within the program?
in thread Changing a varaibale name within the program?
there's a small bug in your code, Sifmole:
as you are now asking for the number of array elements after you unshifted the blank element, e.g.($choice <= scalar(@user_files)) # should be ($choice < scalar(@user_files))
and scalar(@user_files) = 3 but $user_files[3] is undefined!0 1 2 blank file1 file2
-- Hofmator
|
|---|