ddrew78 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a file that looks like this:
What I need to do is get rid of the comma at the end. I tried using sed, like this:(3.3.3.3,4.4.4.4,)
but, instead of giving mesystem "sed 's/,)/)/' pbxiplp > pbxiplp1";
, it just removes everything within the file. Any ideas? I've used 'sed' plenty in the past, but have never run into this before. The file will always only contain one line.(3.3.3.3,4.4.4.4)
Back to
Seekers of Perl Wisdom