ActiveState Perl v5.10. on Windows 2003
Q: I'm trying to find a particular place in a text file, in this case I'm looking for the ":". I want to delete everything after that.
before
one two: three four
five six seven: eight
nine: ten
after
one two
five six seven
nine
I was trying to use substring and index, but I am not going about it right because I keep getting invalid argument. I'm ready to give up.
Q: I'm trying to find a particular place in a text file, in this case I'm looking for the ":". I want to delete everything after that.
before
one two: three four
five six seven: eight
nine: ten
after
one two
five six seven
nine
I was trying to use substring and index, but I am not going about it right because I keep getting invalid argument. I'm ready to give up.