Re: string can not be printed

2002-11-13 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: > > do this > > $header=~s/\r+//g; > > and then try parsing it > Also > You need not use /\nFrom:\s*(.*)/m > You can use /^From:\s*(.*)$/m > ( 'm' treats every new line a full string individually) /m causes the ^ and $ anchors to match the beginning and end of a l

Re: string can not be printed

2002-11-13 Thread Ramprasad A Padmanabhan
do this $header=~s/\r+//g; and then try parsing it Also You need not use /\nFrom:\s*(.*)/m You can use /^From:\s*(.*)$/m ( 'm' treats every new line a full string individually) I think you are getting a carriage return. Julien Motch wrote: Hi , I am again experiencing problem with regular e

Re: string can not be printed

2002-11-12 Thread Paul
--- Julien Motch <[EMAIL PROTECTED]> wrote: > As it is now ,the program does not print the message sender but if > instead of `print("$who")` I write a `print("$who\n")` the sender is > correctly written . At first casual glance it sounds like a buffering problem; try putting $|++; above the c

string can not be printed

2002-11-12 Thread Julien Motch
Hi , I am again experiencing problem with regular expressions and how to print them .My program retrieves some mail headers and the extract two strings : the subject ($subject) and the sender of the mail ($who) .Then the program has to print them . Here is the programm : #Print subject and sende