in reply to removing square brackets
Since this is only a hint I'll also tell you abouts/[\[\]]//g;
separately. It is left as an exercise to the reader to check up the documents or any introductory Perl book and put it all together.perl -lpi -e '...'
|
|---|