http://qs321.pair.com?node_id=875648

ddrew78 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I have a file that looks like this:
(3.3.3.3,4.4.4.4,)
What I need to do is get rid of the comma at the end. I tried using sed, like this:
system "sed 's/,)/)/' pbxiplp > pbxiplp1";
but, instead of giving me
(3.3.3.3,4.4.4.4)
, 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.