? getting appended to file name while writing o file

2015-03-18 Thread Satya Prasad Nemana
Hi I have a small program listed below where i am writing ping results to a file. The program works file except that the file name in the output file is coming as log_ping_19_Mar_15_11_27_49? (please note the ? at the end of the name) The initial output looks like bats3 snemana/perlprogs> perl pi

Re: ? getting appended to file name while writing o file

2015-03-19 Thread Satya Prasad Nemana
; chomp($logFileName) > > otherwise there's a trailing newline character in $logFileName on account > of the call to date > > Andrew > > On Thu, Mar 19, 2015 at 6:08 AM, Satya Prasad Nemana > wrote: > >> Hi >> >> I have a small program listed below where i

Re: ? getting appended to file name while writing o file

2015-03-19 Thread Satya Prasad Nemana
;> No - that one's a mystery to me:) I suspect it's something to do with the >> terminal and character encoding >> >> >> http://stackoverflow.com/questions/5306153/how-to-get-terminals-character-encoding >> >> Andrew >> >> >> On Thu, M