[27785] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 9149 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 12 11:05:45 2006

Date: Wed, 12 Apr 2006 08:05:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 12 Apr 2006     Volume: 10 Number: 9149

Today's topics:
    Re: CGI.pm annoying xHTML output <you.can@request.yes>
    Re: CGI.pm annoying xHTML output <you.can@request.yes>
        Class::Std - how to indicate construction failure <zen13097@zen.co.uk>
    Re: Is language Perl have stack, or I must write it? <bjm-nntp@vsca.ca>
    Re: POP3 Mail Client in PERL using IO::Socket module on <1usa@llenroc.ude.invalid>
    Re: POP3 Mail Client in PERL using IO::Socket module on <rvtol+news@isolution.nl>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 12 Apr 2006 13:51:51 +0200
From: FrankB <you.can@request.yes>
Subject: Re: CGI.pm annoying xHTML output
Message-Id: <mn.633f7d64ad47ca06.52380@request.yes>

Glenn Jackman brought next idea :
> At 2006-04-11 10:40AM, FrankB <you.can@request.net> wrote:
>>  Glenn Jackman formulated the question :
>>>     use CGI qw/:all -debug/;
>>>     my $q = new CGI;
>>  
>>  Ok.
>>  Is the lexical variable really mandatory ?
>
> If you're using 'use strict' (as you should be) it's a good idea.

Thanks again.




------------------------------

Date: Wed, 12 Apr 2006 13:54:37 +0200
From: FrankB <you.can@request.yes>
Subject: Re: CGI.pm annoying xHTML output
Message-Id: <mn.63427d645f1593c4.52380@request.yes>

John Bokma brought next idea :
> FrankB <you.can@request.net> wrote:
>
>> Glenn Jackman formulated the question :
>>> At 2006-04-11 06:56AM, FrankB <you.can@request.net> wrote:
>>>>  Hello,
>>>>  
>>>>  when creating a form with CGI.pm, no matter if it is
>>>>  use CGI;
>>>>  $q = new CGI qw /:all -debug/;
>>> 
>>> Those lines should read:
>>>     use CGI qw/:all -debug/;
>>>     my $q = new CGI;
>> 
>> Ok.
>> Is the lexical variable really mandatory ?
>
> If you have put use strict; 

Which was not the case

> and use warnings; before use CGI ..., yes.

Which is the case.
>
> Also, I recommend to call the variable $cgi instead of $q (or $query).

And that's another tip.

Thanks.




------------------------------

Date: 12 Apr 2006 13:35:31 GMT
From: Dave Weaver <zen13097@zen.co.uk>
Subject: Class::Std - how to indicate construction failure
Message-Id: <443d0223$0$665$fa0fcedb@news.zen.co.uk>

I'm experimenting with using Class::Std to implement 'inside-out'
objects.

In the 'normal' style Perl objects, it's traditional for the
constructor to return undef if the construction fails. In Class::Std
the user-level meat of the construction phase is put in the BUILD
method, but in reading the docs I see no way that the BUILD method can
pass back a failure status (other than by die-ing) to the code that
wants to constuct the object.

For example, using old-style Perl objects, 

    my $obj = MyFileObject->new({ file => 'test.txt' });

would return undef if, for example, the passed file couldn't be found.

What is the correct way to do this construct-time checking using
Class::Std?  Do I have to override new() ?




------------------------------

Date: Wed, 12 Apr 2006 15:02:47 GMT
From: Brad Murray <bjm-nntp@vsca.ca>
Subject: Re: Is language Perl have stack, or I must write it?
Message-Id: <rE8%f.4831$Zl.4327@edtnps89>

info@perot.com wrote:
ipc> Is language Perl have stack, or I must write it?

If you access and array with push and pop, it is a stack.

perldoc -f push
perldoc -f pop

-- 
Brad Murray  * "It is possible to forget that the vital idea of democracy
VSCA Founder *  -- government of the people, by the people, for the people
             *  -- does not constitute a form of escape from government."
             *            -- Joseph Tussman through John Dixon


------------------------------

Date: Wed, 12 Apr 2006 12:10:24 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: POP3 Mail Client in PERL using IO::Socket module only and regular expressions
Message-Id: <Xns97A35349C69EBasu1cornelledu@127.0.0.1>

bobano <bobano.265149@helpfeeds.com> wrote in news:bobano.265149
@helpfeeds.com:

> I am writing a POP3 Client program in Perl. 

 ...

> I am close to getting all of the messages in the mailbox listed with
> their message number, who the message is from and the subject but it

I would have used 

http://search.cpan.org/~sdowd/Mail-POP3Client-2.17/POP3Client.pm

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html



------------------------------

Date: Wed, 12 Apr 2006 15:46:34 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: POP3 Mail Client in PERL using IO::Socket module only and regular expressions
Message-Id: <e1j7fu.1gg.1@news.isolution.nl>

A. Sinan Unur schreef:

> http://search.cpan.org/~sdowd/Mail-POP3Client-2.17/POP3Client.pm

Alternative URL:
  http://search.cpan.org/perldoc?Mail::POP3Client 

-- 
Affijn, Ruud

"Gewoon is een tijger."


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 9149
***************************************


home help back first fref pref prev next nref lref last post