[28177] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 9541 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jul 31 18:06:02 2006

Date: Mon, 31 Jul 2006 15:05:07 -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           Mon, 31 Jul 2006     Volume: 10 Number: 9541

Today's topics:
    Re: Beginner: read in lines array1 and after keyword ar <mstep@t-online.de>
    Re: continous update (print) anno4000@radom.zrz.tu-berlin.de
    Re: continous update (print) <daleif@RTFSIGNATUREimf.au.dk>
        Conversion between UTC and PST timezones... <madan.narra@gmail.com>
    Re: Conversion between UTC and PST timezones... <mothra@nowhereatall.com>
        How to download a .gif file using perl. <qingchengottawa@yahoo.com>
    Re: How to download a .gif file using perl. <bik.mido@tiscalinet.it>
    Re: How to download a .gif file using perl. axel@white-eagle.invalid.uk
    Re: How to download a .gif file using perl. <mritty@gmail.com>
    Re: How to download a .gif file using perl. <qingchengottawa@yahoo.com>
    Re: How to download a .gif file using perl. <mritty@gmail.com>
    Re: How to download a .gif file using perl. <mumia.w.18.spam+nospam.usenet@earthlink.net>
    Re: libwww-POST Issue <azstyx@yahoo.com>
    Re: libwww-POST Issue <azstyx@yahoo.com>
        odd crash in file upload via CGI <msoulier@gmail.com>
    Re: odd crash in file upload via CGI xhoster@gmail.com
    Re: odd crash in file upload via CGI <msoulier@gmail.com>
    Re: odd crash in file upload via CGI <benmorrow@tiscali.co.uk>
    Re: odd crash in file upload via CGI <msoulier@gmail.com>
    Re: odd crash in file upload via CGI <ced@blv-sam-01.ca.boeing.com>
    Re: perl editor <David.Squire@no.spam.from.here.au>
    Re: perl editor <chris-usenet@roaima.co.uk>
    Re: perl editor tinnews@isbd.co.uk
    Re: perl editor <bik.mido@tiscalinet.it>
    Re: perl editor <azstyx@yahoo.com>
    Re: perl editor <abigail@abigail.be>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Mon, 31 Jul 2006 21:09:35 +0200
From: Marek Stepanek <mstep@t-online.de>
Subject: Re: Beginner: read in lines array1 and after keyword array2
Message-Id: <C0F4220F.29549%mstep@t-online.de>

On 31.07.2006 10:26, in article d9frc25an3uf2umhpcb1rda5p1k02frchs@4ax.com,
"Michele Dondi" <bik.mido@tiscalinet.it> wrote:

> On Sun, 30 Jul 2006 21:13:50 +0200, Marek Stepanek <mstep@t-online.de>
> wrote:
> 
>> such code alone :-( Great lesson! I have a supplemental question to the
>> list, which is not on topic under this subject, but perhaps I may dare to do
>> this as a beginner ...
> 
> You're very polite and I think most people wouldn't have any problem
> with your request. But even though other ones are now partecipating to
> this thread, chances are that someone may think this part of the
> thread having become some sort of private conversation among us. So if
> your other question logically fits better in a separate thread, then
> start a new one. In this precise moment I'm at a hospital and I don't
> have time to look further into your post. I'll give another peek into
> it later, if time and therapies permit!
> 
> 
> Michele


And I am only online the evening, so this great thank you is coming late. I
specially appreciated the suggestion of Anno :-)

And to you Michele all the best for your health. I will make a new thread,
with my supplemental question this weekend. In any case I have had bad
conscience to add this question again, abusing your help, without trying to
solve this problem myself first.


greetings from Munich, finally a little rain


marek



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

Date: 31 Jul 2006 15:35:25 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: continous update (print)
Message-Id: <4j6m9tF6glgjU1@news.dfncis.de>

Aukjan van Belkum  <aukjan@gmail.com> wrote in comp.lang.perl.misc:
> Lars Madsen wrote:
> > 
> >> A simple solution is to clear the screen before printing:
> >>
> >> my $clear = qx(clear);
> >>
> >> while ( 1 ){
> >>     print $clear;
> >>     printf "%s\n",'some text';
> >> }
> >>
> > 
> > well yes, besides the fact that the screen flickers a bit, clearing the 
> > screen seems to work.
> > 
> > 
> Yes it does ... i didn't say it was pretty ... just simple ;-)

Put a delay in the loop and update the screen only once per second or so.
The flicker will get much bettter.

Anno


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

Date: Mon, 31 Jul 2006 17:38:55 +0200
From: Lars Madsen <daleif@RTFSIGNATUREimf.au.dk>
Subject: Re: continous update (print)
Message-Id: <eal86f$qdn$1@news.net.uni-c.dk>

es it does ... i didn't say it was pretty ... just simple ;-)
> 
> 
> Put a delay in the loop and update the screen only once per second or so.
> The flicker will get much bettter.
> 
> Anno

I already do that, it looks ok.


-- 

/daleif (remove RTFSIGNATURE from email address)


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

Date: 31 Jul 2006 08:12:22 -0700
From: "madan" <madan.narra@gmail.com>
Subject: Conversion between UTC and PST timezones...
Message-Id: <1154358742.678806.300880@m79g2000cwm.googlegroups.com>

hi all,
i am stuck with the logic of converting the timezones...
i have created a registration for attending a blood camp...this is open
to all over the world...

now i create a venue for a camp in some part of the world say it has
time zone UTC-0900.

now some one registers it from another part of timezone say PST,MST
 ..etc...

so when a user registers for such a event ..the venue date must first
be converted to the user timezone and dispaly the the venue time
according to his time zone...

so can anyone plz tell me the logic...

is there any module available to convert the time zones accordingly...

i am using perl 5.6 on windows...

thanks in advance

madan



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

Date: Mon, 31 Jul 2006 08:45:55 -0700
From: "Mothra" <mothra@nowhereatall.com>
Subject: Re: Conversion between UTC and PST timezones...
Message-Id: <44ce2df3$1@usenet.ugs.com>

madan wrote:
>
> is there any module available to convert the time zones accordingly...
>
> i am using perl 5.6 on windows...
>
> thanks in advance
>
> madan

http://datetime.perl.org/

Hope this helps

Mothra 




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

Date: 31 Jul 2006 12:55:47 -0700
From: "Qing" <qingchengottawa@yahoo.com>
Subject: How to download a .gif file using perl.
Message-Id: <1154375747.292399.228090@m79g2000cwm.googlegroups.com>

I need to download lots of .gif files from a website by using perl. But
the following code doesn't work. Can anybody help?

use warnings;
use strict;
use POSIX 'strftime';
use LWP::Simple;

getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
'pg1S.gif');



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

Date: 31 Jul 2006 22:04:12 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: How to download a .gif file using perl.
Message-Id: <7eosc2trhm9jsbncmaqfoaaalbhpvs9n54@4ax.com>

On 31 Jul 2006 12:55:47 -0700, "Qing" <qingchengottawa@yahoo.com>
wrote:

>getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
>'pg1S.gif');

How 'bout checking the return value? Also look at the is_success() and
is_error() functions, just found after a quick look into the docs...


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Mon, 31 Jul 2006 20:23:15 GMT
From: axel@white-eagle.invalid.uk
Subject: Re: How to download a .gif file using perl.
Message-Id: <TEtzg.7895$5K2.5920@fed1read03>

Qing <qingchengottawa@yahoo.com> wrote:
> I need to download lots of .gif files from a website by using perl. But
> the following code doesn't work. Can anybody help?
 
> use warnings;
> use strict;
> use POSIX 'strftime';
> use LWP::Simple;
 
> getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
> 'pg1S.gif');

'Doesn't work'? In what way does it not work?

Axel


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

Date: 31 Jul 2006 13:28:34 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: How to download a .gif file using perl.
Message-Id: <1154377714.031910.154020@m73g2000cwd.googlegroups.com>

Qing wrote:
> I need to download lots of .gif files from a website by using perl. But
> the following code doesn't work. Can anybody help?

There's a fairly obvious set of debugging steps one should take in this
situation.  Can you please tell us what steps you've taken to debug
your problem, so that no one here is duplicating your effort?

Paul Lalli

[Code retained below for informational purposes]

> use warnings;
> use strict;
> use POSIX 'strftime';
> use LWP::Simple;
>
> getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
> 'pg1S.gif');



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

Date: 31 Jul 2006 13:35:34 -0700
From: "Qing" <qingchengottawa@yahoo.com>
Subject: Re: How to download a .gif file using perl.
Message-Id: <1154378134.501357.59960@i3g2000cwc.googlegroups.com>

The file got downloaded, but not the right size, so the .gif file
couldn't be opened.
The correct file size should be 34kb, the downloaded (using perl)file
size is only 13kb.


Paul Lalli wrote:
> Qing wrote:
> > I need to download lots of .gif files from a website by using perl. But
> > the following code doesn't work. Can anybody help?
>
> There's a fairly obvious set of debugging steps one should take in this
> situation.  Can you please tell us what steps you've taken to debug
> your problem, so that no one here is duplicating your effort?
>
> Paul Lalli
>
> [Code retained below for informational purposes]
>
> > use warnings;
> > use strict;
> > use POSIX 'strftime';
> > use LWP::Simple;
> >
> > getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
> > 'pg1S.gif');



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

Date: 31 Jul 2006 13:51:12 -0700
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: How to download a .gif file using perl.
Message-Id: <1154379072.088946.222660@s13g2000cwa.googlegroups.com>


[Top-quoting fixed. Please don't do that.  Type your reply *below* the
material you are quoting, after snipping signatures and other
irrelevant bits.]

Qing wrote:
> Paul Lalli wrote:
> > Qing wrote:
> > > I need to download lots of .gif files from a website by using perl. But
> > > the following code doesn't work. Can anybody help?
> >
> > There's a fairly obvious set of debugging steps one should take in this
> > situation.  Can you please tell us what steps you've taken to debug
> > your problem, so that no one here is duplicating your effort?
> >
> > Paul Lalli
> >
> > [Code retained below for informational purposes]
> >
> > > use warnings;
> > > use strict;
> > > use POSIX 'strftime';
> > > use LWP::Simple;
> > >
> > > getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
> > > 'pg1S.gif');
> The file got downloaded, but not the right size, so the .gif file
> couldn't be opened.
> The correct file size should be 34kb, the downloaded (using perl)file
> size is only 13kb.

So, the answer to my actual question - What steps have you taken to
debug your problem? - seems to be: "I tried the code, and saw that the
sizes are different.  Then I posted to Usenet." Is that accurate?

Please TRY to debug your own problem!
* Capture the return value of the call to getstore()
* Check if it was a successful call
* Try going to the URL manually, and seeing if the file downloads
successfully in your own browser
* If the URL is to a server you have access to, check that server's
logs

Once you make an attempt at solving your own problem, and demonstrate
that you are putting effort into it, you will likely receive better
help from forums such as this one.

Also, please read (and follow) the Posting Guidelines for this group.
They are posted here twice a week.

Paul Lalli



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

Date: Mon, 31 Jul 2006 21:17:24 GMT
From: "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>
Subject: Re: How to download a .gif file using perl.
Message-Id: <Eruzg.2753$0e5.2450@newsread4.news.pas.earthlink.net>

On 07/31/2006 03:35 PM, Qing wrote:
> Paul Lalli wrote:
>> Qing wrote:
>>> I need to download lots of .gif files from a website by
>>>  using perl. But the following code doesn't work. Can 
>>> anybody help?
>> There's a fairly obvious set of debugging steps one 
>> should take in this situation.  Can you please tell us 
>> what steps you've taken to debug your problem, so that no
>>  one here is duplicating your effort?
>> 
>> Paul Lalli
>> 
>> [Code retained below for informational purposes]
>> 
>>> use warnings; use strict; use POSIX 'strftime'; use 
>>> LWP::Simple;
>>> 
>>> getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
>>>  'pg1S.gif');
> 
> The file got downloaded, but not the right size, so the 
> .gif file couldn't be opened. The correct file size should 
> be 34kb, the downloaded (using perl)file size is only 13kb.
> 

[ top posting fixed ]

Look in the file, and you might discover that's it's an HTML 
error message saying you don't have permission to access that 
file.



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

Date: 31 Jul 2006 11:44:53 -0700
From: "AZSTYX" <azstyx@yahoo.com>
Subject: Re: libwww-POST Issue
Message-Id: <1154371493.082892.153440@m79g2000cwm.googlegroups.com>


Ben Morrow wrote:
> Quoth "AZSTYX" <azstyx@yahoo.com>:
> >
> > AZSTYX wrote:
> > > According to the lwpcook.pod, they give an example:
> > > HTTP::REQUEST example format:
> > > [code]
> > > my $req = HTTP::Request->new(POST =>
> > > 'http://www.perl.com/cgi-bin/BugGlimpse');
> > >   $req->content_type('application/x-www-form-urlencoded');
> > >   $req->content('match=www&errors=0');
> > > my $res = $ua->request($req);
> > > [/code]
>
> <snip>
>
> > > #######################################################################
> > > # start LWP Processing
> > > #########################################################################
> > > $ua = LWP::UserAgent->new;				# create new user agent object
> > > $ua->timeout(15);						# set user agent timeout to 15 seconds
> > > $url = "$baseUrl$urlConfigFile?DownloadFormat=ascii";		# create URL for
> > > getting config ascii file
> > >
> > > # set up HTTP REQUEST object
> > > $httpReq = HTTP::Request->new(POST=>$url) ;			# init Request object
> > > $httpReq-> content_type('multipart/form-data') ;	# content type/mode
>
> <snip>
>
> > RESOLVED!!
> > When using this method, code form varaibles in ->content().
> > Do not use $httpReq-> content_type('multipart/form-data') ; that is
> > only for uploading files.
>
> No, when using multipart/form-data, make sure the POSTs body is actually
> formatted as multipart/form-data. You can't just randomly change the
> content-type and expect things to work.
>
> > For post do not inlcue variables in URL.
>
> There are situations where POSTing to a URL including a query-string is
> sensible, however they are rare, and do not arise from ordinary form
> submission.
>
> Ben
>
> --
> Giles: It's very common for Indian spirits to change to animal form.
> Buffy: [...] and, 'Native American'. G: Sorry? B: We don't say 'Indian'.
> G: Oh, right, yes; always behind on the terms... yes, still trying not to refer
> to you lot as 'bloody colonials'.      [Buffy, 'Pangs'] benmorrow@tiscali.co.uk

Ben, thx for info!

I did get it to work using this code:
[code]
$url = "$baseUrl$urlConfigFile";		# create URL for getting config ascii
file

# set up HTTP REQUEST object
$httpReq = HTTP::Request->new(POST=>$url) ;			# init Request object
$httpReq->content('DownloadFormat=ascii');			# pass form variables
$httpReq-> authorization_basic($UID, $upassw) ;		# credentials
$httpResp = $ua->request($httpReq) ;
[/code]
So... what is wrong with this approach and how should I have set it up?
I'm confused...
Thanks,
Styx



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

Date: 31 Jul 2006 12:00:12 -0700
From: "AZSTYX" <azstyx@yahoo.com>
Subject: Re: libwww-POST Issue
Message-Id: <1154372412.149281.262040@b28g2000cwb.googlegroups.com>


Charles DeRykus wrote:
> AZSTYX wrote:
> > AZSTYX wrote:
> > ...
>
> > RESOLVED!!
> > When using this method, code form varaibles in ->content().
> > Do not use $httpReq-> content_type('multipart/form-data') ; that is
> > only for uploading files.
> > For post do not inlcue variables in URL.
> > New code that works:
> > [code]
> > $url=dynamic/File/Configuration/ReceivefromDevice
> > $httpReq = HTTP::Request->new(POST=>$url) ;			# init Request object
> > $httpReq->content('DownloadFormat=ascii');			# pass form variables
> > $httpReq-> authorization_basic($UID, $upassw) ;		# credentials
> > $httpResp = $ua->request($httpReq) ;
> >
> >
> Another simpler alternative which'll output the correct header; take
> care of form encoding; and also output a content-length header (needed
> for https POST requests IIRC):
>
> use LWP;
> use HTTP::Request::Common qw/POST/;
>
> ...
> my $r =  POST $url, [Comment => 'justacomment'];
> $r->authorization_basic($UID, $upassw);
> print $r->as_string;
>
>
> sample output:
>
> POST https://130.130.130.130:23?DownloadFormat=ascii
> Authorization: Basic Y2VkOnJ1bndheS0x
> Content-Length: 20
> Content-Type: application/x-www-form-urlencoded
>
> Comment=justacomment
>
>
> --
> Charles DeRykus

Hi Charles,
Yes, I actually got this to work just using LWP UserAget POST which
calls the class you mention. I just wanted to understand and see if I
could also get it to work using the http::request methos as well.
thx,
Styx



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

Date: 31 Jul 2006 10:03:41 -0700
From: "msoulier" <msoulier@gmail.com>
Subject: odd crash in file upload via CGI
Message-Id: <1154365421.508177.205080@i42g2000cwa.googlegroups.com>

Hey people,

This one is baffling me. I'm moving from a RedHat 7.3 platform to
CentOS 4.3, which includes a move from Perl 5.6.1 to 5.8.5.

I have an upload dialog making use of a CGI with the CGI module that
works fine on the old platform, but all I get on the new platform is an
internal server error, due to no content being sent back to apache.

It would seem that the interpreter is sending nothing, and I'm having a
hell of a time finding out why. Running it on the command line with the
same environment does not produce similar results (thus, the
environment is obviously not similar enough). And yet, it seems like
the interpreter might just be crashing out for some reason.

Suggestions appreciated as to how to troubleshoot this going forward.

Mike



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

Date: 31 Jul 2006 17:10:41 GMT
From: xhoster@gmail.com
Subject: Re: odd crash in file upload via CGI
Message-Id: <20060731131818.894$Sr@newsreader.com>

"msoulier" <msoulier@gmail.com> wrote:
> Hey people,
>
> This one is baffling me. I'm moving from a RedHat 7.3 platform to
> CentOS 4.3, which includes a move from Perl 5.6.1 to 5.8.5.
>
> I have an upload dialog making use of a CGI with the CGI module that
> works fine on the old platform, but all I get on the new platform is an
> internal server error, due to no content being sent back to apache.

Does a simple "hello world" CGI work?  Does your log file contain anything
useful?

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB


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

Date: 31 Jul 2006 10:22:53 -0700
From: "msoulier" <msoulier@gmail.com>
Subject: Re: odd crash in file upload via CGI
Message-Id: <1154366573.780602.275610@p79g2000cwp.googlegroups.com>

xhos...@gmail.com wrote:
> Does a simple "hello world" CGI work?  Does your log file contain anything
> useful?

CGIs work in general, yes. This CGI works fine in fact, except for this
one feature.

[Mon Jul 31 11:51:46 2006] [error] [client 127.0.0.1] Premature end of
script headers: tug, referer:
https://10.33.15.145/server-manager/cgi-bin/tug?show_dbupload=1&menupage=1&.id=85ea497895b72e17ca7a1a8b94edbef3

Basically says that the CGI returned prematurely, as it returning
nothing.

Mike



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

Date: Mon, 31 Jul 2006 18:14:57 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: odd crash in file upload via CGI
Message-Id: <hdq1q3-hpg.ln1@osiris.mauzo.dyndns.org>


Quoth "msoulier" <msoulier@gmail.com>:
> Hey people,
> 
> This one is baffling me. I'm moving from a RedHat 7.3 platform to
> CentOS 4.3, which includes a move from Perl 5.6.1 to 5.8.5.
> 
> I have an upload dialog making use of a CGI with the CGI module that
> works fine on the old platform, but all I get on the new platform is an
> internal server error, due to no content being sent back to apache.
> 
> It would seem that the interpreter is sending nothing, and I'm having a
> hell of a time finding out why. Running it on the command line with the
> same environment does not produce similar results (thus, the
> environment is obviously not similar enough). And yet, it seems like
> the interpreter might just be crashing out for some reason.
> 
> Suggestions appreciated as to how to troubleshoot this going forward.

Run it as whatever user it gets run as when it's called as a CGI.
CGI::Carp

Ben

-- 
'Deserve [death]? I daresay he did. Many live that deserve death. And some die
that deserve life. Can you give it to them? Then do not be too eager to deal
out death in judgement. For even the very wise cannot see all ends.'
                                                        benmorrow@tiscali.co.uk


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

Date: 31 Jul 2006 10:36:05 -0700
From: "msoulier" <msoulier@gmail.com>
Subject: Re: odd crash in file upload via CGI
Message-Id: <1154367365.150489.130180@75g2000cwc.googlegroups.com>


Ben Morrow wrote:
> Quoth "msoulier" <msoulier@gmail.com>:
> > Hey people,
> >
> > This one is baffling me. I'm moving from a RedHat 7.3 platform to
> > CentOS 4.3, which includes a move from Perl 5.6.1 to 5.8.5.
> >
> > I have an upload dialog making use of a CGI with the CGI module that
> > works fine on the old platform, but all I get on the new platform is an
> > internal server error, due to no content being sent back to apache.
> >
> > It would seem that the interpreter is sending nothing, and I'm having a
> > hell of a time finding out why. Running it on the command line with the
> > same environment does not produce similar results (thus, the
> > environment is obviously not similar enough). And yet, it seems like
> > the interpreter might just be crashing out for some reason.
> >
> > Suggestions appreciated as to how to troubleshoot this going forward.
>
> Run it as whatever user it gets run as when it's called as a CGI.
> CGI::Carp

Yeah, tried CGI::Carp already, and ran it as the right user. However, I
just removed and eval call and this error popped up. For some reason
the eval masked the problem. Perhaps it crashed the interpreter, not
sure.

Can't coerce GLOB to string in entersub at
/usr/lib/perl5/site_perl/5.8.0/Persistence/Object/Simple.pm line 125.

So this is apparently my issue. I didn't see it because evaling the
code and checking $@ for some reason did not turn the issue up. Very,
very odd.

Mike



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

Date: Mon, 31 Jul 2006 19:13:52 GMT
From: Charles DeRykus <ced@blv-sam-01.ca.boeing.com>
Subject: Re: odd crash in file upload via CGI
Message-Id: <J3A833.xr@news.boeing.com>

msoulier wrote:
> Ben Morrow wrote:
>> Quoth "msoulier" <msoulier@gmail.com>:
>>> Hey people,
>>>
>>> This one is baffling me. I'm moving from a RedHat 7.3 platform to
>>> CentOS 4.3, which includes a move from Perl 5.6.1 to 5.8.5.
                                                          ^^^^^
> 
> Yeah, tried CGI::Carp already, and ran it as the right user. However, I
> just removed and eval call and this error popped up. For some reason
> the eval masked the problem. Perhaps it crashed the interpreter, not
> sure.
> 
> Can't coerce GLOB to string in entersub at
> /usr/lib/perl5/site_perl/5.8.0/Persistence/Object/Simple.pm line 125.
                            ^^^^^

Is the version discrepancy between 5.8.5 and 5.8.0 expected... Could 
your environment be picking up older installs...

-- 
Charles DeRykus


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

Date: Mon, 31 Jul 2006 16:34:47 +0100
From: David Squire <David.Squire@no.spam.from.here.au>
Subject: Re: perl editor
Message-Id: <eal7un$9pb$1@gemini.csx.cam.ac.uk>

syracuse wrote:

[top-posting corrected. Please don't do that]

> 
> "Michele Dondi" <bik.mido@tiscalinet.it> wrote in message 
> news:n22sc2hp2mmsc2vn5tjc1uq8tfo08e9j4f@4ax.com...
>> On Mon, 31 Jul 2006 13:15:08 GMT, "syracuse" <syr@bigpond.net.au>
>> wrote:
>>
>>> anyone knows what is a good free editor to use for perl ?
>> You're not twistedsomenumberwhichidontremember in disguise, are you?
>> ;-)
>>
>> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=editors
>>
>>

[signature quoting eliminated. Please don't do that]

 > thanks, just trying to learn, I'm comfortable with vi, but thought a 
nicely
 > coloured editor could help with the syntax ...

Then you want vim or gvim.


DS


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

Date: Mon, 31 Jul 2006 17:04:38 +0100
From: Chris Davies <chris-usenet@roaima.co.uk>
Subject: Re: perl editor
Message-Id: <m9m1q3-voq.ln1@news.roaima.co.uk>

syracuse <syr@bigpond.net.au> wrote:
> thanks, just trying to learn, I'm comfortable with vi, but thought a
> nicely coloured editor could help with the syntax ...

    vim {file}
    : syntax on

Chris


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

Date: 31 Jul 2006 17:32:21 GMT
From: tinnews@isbd.co.uk
Subject: Re: perl editor
Message-Id: <44ce3ea5$0$640$bed64819@news.gradwell.net>

David Squire <David.Squire@no.spam.from.here.au> wrote:
> 
>  > thanks, just trying to learn, I'm comfortable with vi, but thought a 
> nicely
>  > coloured editor could help with the syntax ...
> 
> Then you want vim or gvim.
> 
Or vile/xvile.  (as an extra bonus they use perl as their scripting
language)

-- 
Chris Green


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

Date: 31 Jul 2006 20:29:46 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: perl editor
Message-Id: <86isc21ssbnd36aithmq2ba4vbmdi5lttt@4ax.com>

On Mon, 31 Jul 2006 14:48:14 GMT, "syracuse" <syr@bigpond.net.au>
wrote:

>thanks, just trying to learn, I'm comfortable with vi, but thought a nicely 
>coloured editor could help with the syntax ...

(*Please* do not top-post!)

AFAIK vi(m) *does* support syntax highlighting.


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: 31 Jul 2006 11:47:31 -0700
From: "AZSTYX" <azstyx@yahoo.com>
Subject: Re: perl editor
Message-Id: <1154371651.570534.84560@p79g2000cwp.googlegroups.com>


syracuse wrote:
> Hi
> anyone knows what is a good free editor to use for perl ?
> Thanks
> Syracuse

I use the editor from www.crimson.com, its free and highlights perl
syntax and optionally saves file sin UNIX or Windows format.
Styx



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

Date: 31 Jul 2006 20:23:12 GMT
From: Abigail <abigail@abigail.be>
Subject: Re: perl editor
Message-Id: <slrnecsplg.123.abigail@alexandra.abigail.nl>

Josef Moellers (josef.moellers@fujitsu-siemens.com) wrote on MMMMDCCXVII
September MCMXCIII in <URL:news:eal0kq$f1r$1@nntp.fujitsu-siemens.com>:
@@  syracuse wrote:
@@ > Hi
@@ > anyone knows what is a good free editor to use for perl ?
@@ > Thanks
@@ > Syracuse 
@@  
@@  vi?


vi isn't free. Although many good vi clones are.


Abigail
-- 
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
             "\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
             "\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'


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

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 9541
***************************************


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