hi drieux
i had a look on you snippet of code. very neat, i didnt know =cut :))). however, im
not happy with the regexing solution, since i cant get it to work:
$scalar =~ s/\015\012?|\012/\n/g;
what is this ^M anywat? carrige return?
reading the perldoc -f chomp doesnt tell me if chomp deals
On Monday, May 27, 2002, at 03:30 , Patrick Dempster wrote:
> Sorry for the request receipt being on in this message, I forgot to turn
> it
> off after working with a different message earlier on this evening.
>
> Sorry,
> Patrick
[..]
for what it is worth
most folks wouldn't know the header
Sorry for the request receipt being on in this message, I forgot to turn it
off after working with a different message earlier on this evening.
Sorry,
Patrick
- Original Message -
From: "Patrick Dempster" <[EMAIL PROTECTED]>
To: "Perl Beginners" <[EMAIL PROTECTED]>
Sent: Monday, May 27, 2
Hi Folks,
A while ago I posted to the list a question asking if I should buy the perl
cookbook, I was a bit concerned that the book would be "out of date" because
of all the talk about perl 6 and such like, but the response from this list
was that the book was an excellent investment. So, I decid
Hello Perl Beginners,
On Mon, 27 May 2002, 09:28:16 h [GMT -0400] (which
was 15:28:16 h [GMT +0200] where I live) Tim Musson wrote:
> Any one else having problems with sending mail to the list and
> getting a junk back from <[EMAIL PROTECTED]> addresses? The
> subject line in the headers a
David Vd Geer Inhuur Tbv Iplib wrote:
>
> Hi,
Hello,
> I know how to delete 1 or more whitespaces at in a line using :
>
> while {
> s/\s+//g;
> }
> close IN;
>
> #-
>
> But How do I specific delete 1 or more whitespaces at the end of the line ?
> using :
>
>
On Monday, May 27, 2002, at 09:15 , Jon Howe wrote:
[..]
> you should be able to regex this ^M in perl but I have a feeling it is an
> entity representation not 2 individual chars I will check it out and post
> unless anyone else knows and posts first.
>
> Jon
[..]
>> http://www.wetware.com/dri
Weekly posting statistics for perl.beginners - week 21 of 2002.
>From Monday 2002-05-20 to Sunday 2002-05-26 there were
524 articles posted (25106 lines) by 134 authors, giving an average
3.91 articles per author, and an average article length of 48 lpa.
The average number of articles per day w
On Monday, May 27, 2002, at 07:31 , Martin A. Hansen wrote:
>
> my nice cgi forms works beautiful under konq on linux. but the windows
> machine generates ^M at the and of lines? this makes eval go fubar? how
> can i prevent this???
http://www.wetware.com/drieux/pbl/RegEx/eolOut.txt
may help
> I would suggest you try changing it again. When you went in to change
> it, did you have admin rights in the OS on that box?
>
> If it was not in the response to the Path cmd, then it did not 'take'.
>
> --
> [EMAIL PROTECTED]
I figured out my problem. I didn't add it to the "Path" myself.
my nice cgi forms works beautiful under konq on linux. but the windows machine
generates ^M at the and of lines? this makes eval go fubar? how can i prevent this???
martin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Felix Geerinckx wrote:
> on Mon, 27 May 2002 13:01:36 GMT, [EMAIL PROTECTED] (Harry
> Jackson) wrote:
>
> > s/\s+$//g;
>
> As explained by Sudarsan Raghavan, the 'g' modifier is not necessary.
> The '+' in '\s+' gobbles up all trailing whitespace.
You can refer to me as just Sudarsan :-)
>
>
perl listrs,
Any one else having problems with sending mail to the list and
getting a junk back from <[EMAIL PROTECTED]> addresses? The
subject line in the headers are not readable, but my eMail client
interprets it as
¸ÞÀÏ Àü¼Û ½ÇÆÐ ¾Ë¸² <[EMAIL PROTECTED]>
and
¸ÞÀÏ Àü¼Û ½ÇÆÐ ¾Ë¸²
Thanks it works !!
I also got a private e-mail that said :
s/\s+$//;
And that also works !
Regs David
--
>
> Hi David.
>
> if you have an variable like this
>
> $mystring = "hello this is a string ";
> $chop($mystring);
>
> the chop command is what you are looking f
on Mon, 27 May 2002 13:01:36 GMT, [EMAIL PROTECTED] (Harry
Jackson) wrote:
> s/\s+$//g;
As explained by Sudarsan Raghavan, the 'g' modifier is not necessary.
The '+' in '\s+' gobbles up all trailing whitespace.
> $\ is a global which hold your end of line terminator (I think)
In fact, '$\'
on Mon, 27 May 2002 12:57:20 GMT, [EMAIL PROTECTED] (Heiko Heggen) wrote:
> $mystring = "hello this is a string ";
> $chop($mystring);
>
> the chop command is what you are looking for I think.
> Just try it out.
No it isn't. From 'perldoc -f chop':
chopChops off the last character
David vd Geer Inhuur tbv IPlib wrote:
> Hi,
>
> I know how to delete 1 or more whitespaces at in a line using :
>
> while {
> s/\s+//g;
> }
> close IN;
>
> #-
>
> But How do I specific delete 1 or more whitespaces at the end of the line ?
> using :
>
> while {
>
> -Original Message-
> From: David vd Geer Inhuur tbv IPlib
> [mailto:[EMAIL PROTECTED]]
> Sent: 27 May 2002 13:49
> To: [EMAIL PROTECTED]
> Subject: Remove 1 or more whitespaces at the end of $_
>
>
>
> Hi,
>
> I know how to delete 1 or more whitespaces at in a line using :
>
> whi
Hi David.
if you have an variable like this
$mystring = "hello this is a string ";
$chop($mystring);
the chop command is what you are looking for I think.
Just try it out.
Heiko
>>-Ursprüngliche Nachricht-
>>Von: David vd Geer Inhuur tbv IPlib
>>[mailto:[EMAIL PROTECTED]]
>>Gesend
Hi,
I know how to delete 1 or more whitespaces at in a line using :
while {
s/\s+//g;
}
close IN;
#-
But How do I specific delete 1 or more whitespaces at the end of the line ?
using :
while {
s/$\s+//g;
}
close IN;
Didn't work. Does anyone have the solutio
Hey mark,
My MUA believes you used Microsoft Outlook Express 5.50.4522.1200
to write the following on Sunday, May 26, 2002 at 7:36:13 PM.
>> It has always just worked for me... when you drop to a cmd prompt and
>> type 'path' what do you get? here is what mine looks like
>> PATH=D:\Perl\bin\;
on Sat, 25 May 2002 01:36:24 GMT, [EMAIL PROTECTED] (Beau E. Cox)
wrote:
> So...I want to create a binary 'PPD' distribution that can be
> installed with ActiveState's PPM utility.
>
> I have not been able to find "good" documentation (by good, I
> mean basic enough for me to understand) on bui
Hello, beginners.
Sorry to trouble you.
I'm new in perl.
I want to create script which can parser email request and send user http://
content adresses which user want to see.
Do you have any ideas how i can to do this ?
Which CPAN modules i must use ?
Which features i must have on my server (Pe
23 matches
Mail list logo