Re: error in printing unicode

2008-05-08 Thread Daniel McClory
There are basically 3 lines that you'll want to be using if you're going to be using unicode in your perl scripts - one for input, one for output, and one for using unicode characters within the perl script itself. binmode STDOUT, ":utf8"; #this tells perl that the stdout is to be enco

problem using backslash on brackets in regular expressions

2008-04-22 Thread Daniel McClory
Hi, I have files which contain sentences, where some lines have extra information inside brackets and parentheses. I would like to delete everything contained within brackets or parentheses, including the brackets. I know that I am supposed to use the backslash to turn off the metachara