K
kelly
Hi,
I don't have a code to show you, what I need are references or
algorithms so that I'm in a right track.
By the way, thanks for introducing me the array or arrays. Now I can
continue my script.
Now I want to delete a line from a file. Line being the strings I
got/saved to/from array of arrays.
This website tells me I have to open my file and create a new file and
put my changes to the new file.
http://www.rocketaware.com/perl/perlfaq5/How_do_I_change_one_line_in_a_fi.htm
So here's what I have in mind, or questions on what should I do?
-create a new blank file
-open my existing file where it is full of strings with spaces, \n...etc.
-where do I make my changes?
-how will all the strings from existing file gets copied to new file?
-will I need to save all the existing file strings to array of array or
just array? what will be my separator?
-then when do I do the copying to new file? Before of after deletion of
strings from my array of arrays?
-when or where can I do the deletion?
Sorry about all the questions? I just can't start coding this if I don't
know what to do. Please feel free to tell me websites or which perldoc
I would be needing to research on.
Thanks.
I don't have a code to show you, what I need are references or
algorithms so that I'm in a right track.
By the way, thanks for introducing me the array or arrays. Now I can
continue my script.
Now I want to delete a line from a file. Line being the strings I
got/saved to/from array of arrays.
This website tells me I have to open my file and create a new file and
put my changes to the new file.
http://www.rocketaware.com/perl/perlfaq5/How_do_I_change_one_line_in_a_fi.htm
So here's what I have in mind, or questions on what should I do?
-create a new blank file
-open my existing file where it is full of strings with spaces, \n...etc.
-where do I make my changes?
-how will all the strings from existing file gets copied to new file?
-will I need to save all the existing file strings to array of array or
just array? what will be my separator?
-then when do I do the copying to new file? Before of after deletion of
strings from my array of arrays?
-when or where can I do the deletion?
Sorry about all the questions? I just can't start coding this if I don't
know what to do. Please feel free to tell me websites or which perldoc
I would be needing to research on.
Thanks.