[29103] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 347 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 16 11:10:02 2007

Date: Mon, 16 Apr 2007 08:09:09 -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, 16 Apr 2007     Volume: 11 Number: 347

Today's topics:
        %s in variable, how to work correctly? <dickjenospam@xs4all.nl>
    Re: %s in variable, how to work correctly? <bik.mido@tiscalinet.it>
    Re: %s in variable, how to work correctly? <wahab-mail@gmx.de>
    Re: %s in variable, how to work correctly? <jurgenex@hotmail.com>
    Re: %s in variable, how to work correctly? <dickjenospam@xs4all.nl>
    Re: Absolute Path errors <nikos1337@gmail.com>
    Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~ <wahab-mail@gmx.de>
    Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~ <sisyphus1@nomail.afraid.org>
        Choosing the correct mysql server to connect to <nikos1337@gmail.com>
    Re: Choosing the correct mysql server to connect to <mgarrish@gmail.com>
        Error connecting to remote database <nikos1337@gmail.com>
    Re: Error connecting to remote database <nikos1337@gmail.com>
    Re: Error connecting to remote database <nikos1337@gmail.com>
    Re: Error connecting to remote database <scobloke2@infotop.co.uk>
    Re: Error connecting to remote database <nikos1337@gmail.com>
    Re: is laziness a programer's virtue? <pjb@informatimago.com>
    Re: is laziness a programer's virtue? (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
    Re: is laziness a programer's virtue? <cwilbur@chromatico.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Mon, 16 Apr 2007 12:24:09 +0200
From: "Dick Pluim" <dickjenospam@xs4all.nl>
Subject: %s in variable, how to work correctly?
Message-Id: <46234f62$0$328$e4fe514c@news.xs4all.nl>

Hello,

I'm co-working on an application for Oracle-dba-activities and encounter the 
following problem:

I read out an Oracle-parameter log_archive_format. This one containts also 
%s in the value (%t_%s_%r.dbf).
If I just let it print it show me the %s, but if I add the text to another 
string I loose the %s, and it looks like
%t__%r.dbf .
How can I keep the %s in it? I've been googling around but can't find a 
solution sofar.
Thanx in advance.

Dick



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

Date: Mon, 16 Apr 2007 12:39:35 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: %s in variable, how to work correctly?
Message-Id: <0ck623lldt6ndpjb29b2i35uvbt05eui42@4ax.com>

On Mon, 16 Apr 2007 12:24:09 +0200, "Dick Pluim"
<dickjenospam@xs4all.nl> wrote:

>I read out an Oracle-parameter log_archive_format. This one containts also 
>%s in the value (%t_%s_%r.dbf).
>If I just let it print it show me the %s, but if I add the text to another 
>string I loose the %s, and it looks like
>%t__%r.dbf .
>How can I keep the %s in it? I've been googling around but can't find a 
>solution sofar.

This does not make sense unless you specify *how* you "add the text to
another string".

  pilsner:~ [12:39:39]$ perl -le '$a="%t_%s_%r.dbf"; $b="foo${a}bar";
print for $a,$b'
  %t_%s_%r.dbf
  foo%t_%s_%r.dbfbar

I suspect you may be messing with (s)printf().


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, 16 Apr 2007 12:13:39 +0200
From: Mirco Wahab <wahab-mail@gmx.de>
Subject: Re: %s in variable, how to work correctly?
Message-Id: <evvk3s$nhh$1@mlucom4.urz.uni-halle.de>

Dick Pluim wrote:
> I read out an Oracle-parameter log_archive_format. This one containts 
> also %s in the value (%t_%s_%r.dbf).
> If I just let it print it show me the %s, but if I add the text to 
> another string I loose the %s, and it looks like
> %t__%r.dbf .
> How can I keep the %s in it? I've been googling around but can't find a 
> solution sofar.

How do you "add it to another string"?

I can only guess. Maybe it's something
like this:

    ...

    my $pathname = '/path/to/my/files/';
    my $filename = '%t_%s_%r.dbf';

    my $trial1 =        $pathname . $filename;
    print $trial1, "\n";                       # ==> %t_%s_%r

    my $trial2 =         "$pathname$filename";
    print $trial2, "\n";                       # ==> %t_%s_%r

    my $trial3 = sprintf "$pathname$filename";
    print $trial3, "\n";                       # ==> %t__%r

    ...

Compare how $trial2 and $trial3 are constructed ...


But you should provide some more information
on *what* you did.

Regards

M.


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

Date: Mon, 16 Apr 2007 11:02:51 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: %s in variable, how to work correctly?
Message-Id: <vJIUh.13469$Ln5.9276@trndny06>

Dick Pluim wrote:
> I read out an Oracle-parameter log_archive_format. This one containts
> also %s in the value (%t_%s_%r.dbf).
> If I just let it print it show me the %s, but if I add the text to
> another string I loose the %s, and it looks like
> %t__%r.dbf .

Assuming you mean concatenate when you are talking about adding, then I 
can't reproduce your problem:

C:\tmp>type t.pl
use strict; use warnings;
my $string = '%t_%s_%r.dbf';
print $string, "\n";
my $another = 'foo>'.$string.'<bar';
print $another, "\n";

C:\tmp>t.pl
%t_%s_%r.dbf
foo>%t_%s_%r.dbf<bar

As you can clearly see the %s is still printed by print(), even after 
concatenating more text to it.

jue 




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

Date: Mon, 16 Apr 2007 13:22:43 +0200
From: "Dick Pluim" <dickjenospam@xs4all.nl>
Subject: Re: %s in variable, how to work correctly?
Message-Id: <46235d20$0$337$e4fe514c@news.xs4all.nl>

"Michele Dondi" <bik.mido@tiscalinet.it> schreef in bericht 
news:0ck623lldt6ndpjb29b2i35uvbt05eui42@4ax.com...
> On Mon, 16 Apr 2007 12:24:09 +0200, "Dick Pluim"
> <dickjenospam@xs4all.nl> wrote:
>
>>I read out an Oracle-parameter log_archive_format. This one containts also
>>%s in the value (%t_%s_%r.dbf).
>>If I just let it print it show me the %s, but if I add the text to another
>>string I loose the %s, and it looks like
>>%t__%r.dbf .
>>How can I keep the %s in it? I've been googling around but can't find a
>>solution sofar.
>
> This does not make sense unless you specify *how* you "add the text to
> another string".
>
>  pilsner:~ [12:39:39]$ perl -le '$a="%t_%s_%r.dbf"; $b="foo${a}bar";
> print for $a,$b'
>  %t_%s_%r.dbf
>  foo%t_%s_%r.dbfbar
>
> I suspect you may be messing with (s)printf().

Thanx. It had indeed to do with print and/or printf. When I did the test to 
let me show the value I used print and in the final part where the program 
has to come up with errormessages printf was being used. Changed this to 
print and now it's working fine.

Dick 



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

Date: 16 Apr 2007 05:40:05 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Re: Absolute Path errors
Message-Id: <1176727204.960487.278370@b75g2000hsg.googlegroups.com>

On Apr 13, 8:53 pm, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On 13 Apr 2007 02:03:54 -0700, "skieros" <nikos1...@gmail.com> wrote:
>
> >> What happens in both cases can be known if index.pl informs of it's
> >> current work directory
>
> >Yes, maybe...
>
> >Because i cannot else explain how Apache could locate all files for
> >opening with the redirection method and after removed the redirection
> >it couldnt.....
>
> To put it briefly: COINCIDENCE!
>
> >If it could in the first place it can locate them and i can use them
> >with relative apth only.
>
> You can still use relative paths, provided you massage them a little
> as duly explained by another poster. That would only require a
> negligible amount of effort.
>
> 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,

Now that iam hosting my webpage on freehostia.com command like open
FILE, "D:/www/data/text/tips.txt" or die $!;

So, i will eb definately be needing a way to oepn those files not in
absolute hdd way but soemthing like open FILE, /data/text/tips.txt or
die $!;

How will i be abel to accomplish that?



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

Date: Mon, 16 Apr 2007 12:48:20 +0200
From: Mirco Wahab <wahab-mail@gmx.de>
Subject: Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"
Message-Id: <evvkm3$nn2$1@mlucom4.urz.uni-halle.de>

Sisyphus wrote:
> "Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
> news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
>> This was introduced with Build 820 (Jan 2007),
>> these directories ( /site/bin and /site/lib )
>> are empty after installation.
>>
> I think the empty site/lib folder started with build 819 (accompanied by 
> a change in the order of the @INC directories), but I hadn't heard 
> anything about the creation of a site\bin folder. (I have the 32-bit 
> build of 819 and the 64-bit build of 820, neither of which contain a 
> site\bin folder.)

Now I downloaded the 820/x64 and /x86 to to satisfy my curiosity ;-)

$ unzip -l ActivePerl-5.8.8.820-MSWin32-x64-274739.zip | grep "site/bin"
         0  01-24-07 01:17   ActivePerl-5.8.8.820-MSWin32-x64-274739/perl/site/bin/

$ unzip -l ActivePerl-5.8.8.820-MSWin32-x86-274739.zip | grep "site/bin"
         0  01-24-07 01:41   ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/site/bin/

Maybe you didn't extract empty diretories?

New with 820/MSI-Installer is also that it puts the
"\perl\site\bin\" together with (and before) "\perl\bin\"
into the windows %PATH.

Regards

M.


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

Date: Mon, 16 Apr 2007 23:51:46 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: ActiveState vs. "C:\Program Files\" and "C:\Progra~1\"
Message-Id: <46237f5b$0$23675$afc38c87@news.optusnet.com.au>


"Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
news:evvkm3$nn2$1@mlucom4.urz.uni-halle.de...
> Sisyphus wrote:
>> "Mirco Wahab" <wahab-mail@gmx.de> wrote in message 
>> news:evvb8k$ktd$1@mlucom4.urz.uni-halle.de...
>>> This was introduced with Build 820 (Jan 2007),
>>> these directories ( /site/bin and /site/lib )
>>> are empty after installation.
>>>
>> I think the empty site/lib folder started with build 819 (accompanied by 
>> a change in the order of the @INC directories), but I hadn't heard 
>> anything about the creation of a site\bin folder. (I have the 32-bit 
>> build of 819 and the 64-bit build of 820, neither of which contain a 
>> site\bin folder.)
>
> Now I downloaded the 820/x64 and /x86 to to satisfy my curiosity ;-)

Oooh ... you're a sad case ;-)

>
> $ unzip -l ActivePerl-5.8.8.820-MSWin32-x64-274739.zip | grep "site/bin"
>         0  01-24-07 01:17 
> ActivePerl-5.8.8.820-MSWin32-x64-274739/perl/site/bin/
>
> $ unzip -l ActivePerl-5.8.8.820-MSWin32-x86-274739.zip | grep "site/bin"
>         0  01-24-07 01:41 
> ActivePerl-5.8.8.820-MSWin32-x86-274739/perl/site/bin/
>

That looks quite conclusive.

> Maybe you didn't extract empty diretories?

Yes ... I think so.

>
> New with 820/MSI-Installer is also that it puts the
> "\perl\site\bin\" together with (and before) "\perl\bin\"
> into the windows %PATH.
>

I steer clear of the '.msi' version - I only ever grab the '.zip' version.

I would have used the latest evaluation version of WinZip (my copy of which 
has now expired) to extract ActivePerl-5.8.8.820-MSWin32-x86-274739.zip to 
some temp location, then run the 'Installer.bat' to install to the location 
of my choice - making sure that registry and path settings were not 
affected.

I've just now extracted ActivePerl-5.8.8.820-MSWin32-x86-274739.zip using an 
old GnuWin32 version (5.12) of unzip, and again run 'Installer.bat'. This 
time, the site\bin directory *did* get created.

I can only assume that WinZip did something that unzip did not :-)

Cheers,
Rob 



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

Date: 16 Apr 2007 05:08:09 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Choosing the correct mysql server to connect to
Message-Id: <1176725289.196368.107280@o5g2000hsb.googlegroups.com>

my $dbh = DBI->connect('DBI:mysql:;host=mysql3.freehostia.com',
'nikkou6', 'tiabhp2r', {RaiseError=>1});
or
my $dbh = DBI->connect('DBI:mysql:' 'root', 'tiabhp2r',
{RaiseError=>1});

Is the above likely to work?
I made it liek these so for init.pl to have a knowledge of wether it
runs on localhost or on freehostia.com which is my remote hosting
company.

For some reason it aitn working...but i dnt see the error.



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

Date: 16 Apr 2007 05:42:29 -0700
From: "Matt Garrish" <mgarrish@gmail.com>
Subject: Re: Choosing the correct mysql server to connect to
Message-Id: <1176727349.591645.170630@d57g2000hsg.googlegroups.com>

On Apr 16, 8:08 am, "skieros" <nikos1...@gmail.com> wrote:
> my $dbh = DBI->connect('DBI:mysql:;host=mysql3.freehostia.com',
> 'nikkou6', 'tiabhp2r', {RaiseError=>1});
> or
> my $dbh = DBI->connect('DBI:mysql:' 'root', 'tiabhp2r',
> {RaiseError=>1});
>
> Is the above likely to work?

I would expect that when connecting to MySQL without specifying a
database you will connect by default to the "mysql" database (if the
lack of a default database isn't the error; never tried), and I doubt
very highly that your host would allow you in there. You might try
adding a die statement if you don't get a handle so you know what went
wrong and so your code doesn't continue on when it shouldn't:

my $dbh = DBI->connect() or die $DBI::errstr;

Matt



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

Date: 16 Apr 2007 06:03:38 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Error connecting to remote database
Message-Id: <1176728618.401401.309950@y5g2000hsa.googlegroups.com>

my $dbh = DBI->connect('DBI:mysql:;host=mysql3.freehostia.com',
'nikkou6', '********', {RaiseError=>1});
or
my $dbh = DBI->connect('DBI:mysql:' 'root', '********',
{RaiseError=>1});

Is the above likely to work?
I made it liek these so for init.pl to have a knowledge of wether it
runs on localhost or on freehostia.com which is my remote hosting
company.

For some reason it aint working...but i don't see the error.

Matt said:
I would expect that when connecting to MySQL without specifying a
database you will connect by default to the "mysql" database (if the
lack of a default database isn't the error; never tried), and I doubt
very highly that your host would allow you in there. You might try
adding a die statement if you don't get a handle so you know what went
wrong and so your code doesn't continue on when it shouldn't:

my $dbh = DBI->connect() or die $DBI::errstr;

Matt



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

Date: 16 Apr 2007 06:10:30 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Re: Error connecting to remote database
Message-Id: <1176729030.891307.169040@e65g2000hsc.googlegroups.com>

On Apr 16, 4:03 pm, "skieros" <nikos1...@gmail.com> wrote:
> my $dbh = DBI->connect('DBI:mysql:;host=mysql3.freehostia.com',
> 'nikkou6', '********', {RaiseError=>1});
> or
> my $dbh = DBI->connect('DBI:mysql:' 'root', '********',
> {RaiseError=>1});
>
> Is the above likely to work?
> I made it liek these so for init.pl to have a knowledge of wether it
> runs on localhost or on freehostia.com which is my remote hosting
> company.
>
> For some reason it aint working...but i don't see the error.
>
> Matt said:
> I would expect that when connecting to MySQL without specifying a
> database you will connect by default to the "mysql" database (if the
> lack of a default database isn't the error; never tried), and I doubt
> very highly that your host would allow you in there. You might try
> adding a die statement if you don't get a handle so you know what went
> wrong and so your code doesn't continue on when it shouldn't:
>
> my $dbh = DBI->connect() or die $DBI::errstr;
>
> Matt

Yes Matt i tried what you said and i got this:

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, support@freehostia.com and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.

More information about this error may be available in the server error
log.

Apache/1.3.33 Server at skieros.freehostia.com Port 80

So, i cant veen get a proper handle! But whast the goo of a free web
hostign compnay if they dont let you connect to  their mysql server so
you can create withing your perl script your mysql database and
tables...



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

Date: 16 Apr 2007 06:15:16 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Re: Error connecting to remote database
Message-Id: <1176729316.205934.11720@n76g2000hsh.googlegroups.com>

On Apr 16, 4:03 pm, "skieros" <nikos1...@gmail.com> wrote:
> my $dbh =3D DBI->connect('DBI:mysql:;host=3Dmysql3.freehostia.com',
> 'nikkou6', '********', {RaiseError=3D>1});
> or
> my $dbh =3D DBI->connect('DBI:mysql:' 'root', '********',
> {RaiseError=3D>1});
>
> Is the above likely to work?
> I made it liek these so for init.pl to have a knowledge of wether it
> runs on localhost or on freehostia.com which is my remote hosting
> company.
>
> For some reason it aint working...but i don't see the error.
>
> Matt said:
> I would expect that when connecting to MySQL without specifying a
> database you will connect by default to the "mysql" database (if the
> lack of a default database isn't the error; never tried), and I doubt
> very highly that your host would allow you in there. You might try
> adding a die statement if you don't get a handle so you know what went
> wrong and so your code doesn't continue on when it shouldn't:
>
> my $dbh =3D DBI->connect() or die $DBI::errstr;
>
> Matt

Now that i made a very simple perl cgi script the following:

#!/usr/bin/perl -w
use strict;
use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use DBI;


print header( -charset=3D>'utf-8' );
print start_html(  -title=3D>'=D8=F5=F7=F9=F6=E5=EB=DE =D0=ED=E5=F5=EC=E1=
=F4=E9=EA=DC =CA=E5=DF=EC=E5=ED=E1!' );

print "hello" or die $!;

is aw that this very simplistic script WONT even run, it dies
prematurely even before displaying a print eeror!

WHY ?!



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

Date: Mon, 16 Apr 2007 14:45:39 +0100
From: Ian Wilson <scobloke2@infotop.co.uk>
Subject: Re: Error connecting to remote database
Message-Id: <46237e0d$0$6943$fa0fcedb@news.zen.co.uk>

skieros wrote:
> #!/usr/bin/perl -w
> use strict;
> use CGI::Carp qw(fatalsToBrowser);
> use CGI qw(:standard);
> use DBI;
> 
> print header( -charset=>'utf-8' );
> print start_html(  -title=>'Øõ÷ùöåëÞ ÐíåõìáôéêÜ Êåßìåíá!' );
> 
> print "hello" or die $!;
> 
> is aw that this very simplistic script WONT even run, 

It runs for me.

> it dies prematurely even before displaying a print eeror!
> 
> WHY ?!
> 

$ perl skieros.pl
Content-Type: text/html; charset=utf-8

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
         PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
lang="en-US"><head><title>....öå.. ..å..áô... .å..å.á!</title>


I haven't set up the right locale or font but the program runs fine. 
Maybe you should elaborate on what you mean by "dies" and what you found 
in your web-server's access log and error log.

It's probably a mistake to mix CGI.pm and and-written HTML so
change
   print "hello" or die $!;
to
   print p('hello') or die $!;
   print end_html;

I'm not sure why you have the `or die` since you already specified 
fatalsToBrowser and you don't have `or die` elsewhere.


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

Date: 16 Apr 2007 07:52:05 -0700
From: "skieros" <nikos1337@gmail.com>
Subject: Re: Error connecting to remote database
Message-Id: <1176735125.624432.106130@e65g2000hsc.googlegroups.com>

On Apr 16, 4:45 pm, Ian Wilson <scoblo...@infotop.co.uk> wrote:
> skieros wrote:
> > #!/usr/bin/perl -w
> > use strict;
> > use CGI::Carp qw(fatalsToBrowser);
> > use CGI qw(:standard);
> > use DBI;
>
> > print header( -charset=3D>'utf-8' );
> > print start_html(  -title=3D>'=D8=F5=F7=F9=F6=E5=EB=DE =D0=ED=E5=F5=EC=
=E1=F4=E9=EA=DC =CA=E5=DF=EC=E5=ED=E1!' );
>
> > print "hello" or die $!;
>
> > is aw that this very simplistic script WONT even run,
>
> It runs for me.
>
> > it dies prematurely even before displaying a print eeror!
>
> > WHY ?!
>
> $ perl skieros.pl
> Content-Type: text/html; charset=3Dutf-8
>
> <?xml version=3D"1.0" encoding=3D"iso-8859-1"?>
> <!DOCTYPE html
>          PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns=3D"http://www.w3.org/1999/xhtml"
> lang=3D"en-US"><head><title>....=F6=E5.. ..=E5..=E1=F4... .=E5..=E5.=E1!<=
/title>
>
> I haven't set up the right locale or font but the program runs fine.
> Maybe you should elaborate on what you mean by "dies" and what you found
> in your web-server's access log and error log.
>
> It's probably a mistake to mix CGI.pm and and-written HTML so
> change
>    print "hello" or die $!;
> to
>    print p('hello') or die $!;
>    print end_html;
>
> I'm not sure why you have the `or die` since you already specified
> fatalsToBrowser and you don't have `or die` elsewhere.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
 support@freehostia.com and inform them of the time the error
occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at skieros.freehostia.com Port 80</
ADDRESS>
</BODY></HTML>

when i try to http://skieros.freehostia.com/cgi-bin/test.pl



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

Date: Mon, 16 Apr 2007 12:46:02 +0200
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: is laziness a programer's virtue?
Message-Id: <87k5wcha1h.fsf@voyager.informatimago.com>

Dan Bensen <randomgeek@cyberspace.net> writes:
> Laziness (physical, not intellectual) is exceedingly useful in
> programming.
>
> I also disagree with the idea that Larry is any more dangerous than
> Guido, Matz, or Gosling.  They're all part of a reaction against
> the difficulties of C++ that started somewhere around 1990 or so.
> I don't seen any merit in singling out Larry and Perl for special
> treatment.

Well at least the notion of the lazy programmer is much older than
1990.  In 1981 already my programming teachers were telling us that a
good programmer was an intelligent lazy programmer.

-- 
__Pascal Bourguignon__


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

Date: Mon, 16 Apr 2007 13:19:33 +0200
From: torbenm@app-5.diku.dk (Torben =?iso-8859-1?Q?=C6gidius?= Mogensen)
Subject: Re: is laziness a programer's virtue?
Message-Id: <7z8xcs1s8q.fsf@app-5.diku.dk>

rpw3@rpw3.org (Rob Warnock) writes:

> Daniel Gee <zefria@gmail.com> wrote:
> +---------------
> | You fail to understand the difference between passive laziness and
> | active laziness. Passive laziness is what most people have. It's
> | active laziness that is the virtue. It's the desire to go out and /
> | make sure/ that you can be lazy in the future by spending just a
> | little time writing a script now. It's thinking about time
> | economically and acting on it.
> +---------------
>
> Indeed. See Robert A. Heinlein's short story (well, actually just
> a short section of his novel "Time Enough For Love: The Lives of
> Lazarus Long") entitled "The Tale of the Man Who Was Too Lazy To
> Fail". It's about a man who hated work so much that he worked
> very, *very* hard so he wouldn't have to do any (and succeeded).

You can also argue that the essence of progress is someone saying
"Hey, there must be an easier way to do this!".

	Torben



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

Date: 16 Apr 2007 10:45:07 -0400
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: is laziness a programer's virtue?
Message-Id: <878xcs5qfg.fsf@mithril.chromatico.net>

>>>>> "JE" == Jürgen Exner <jurgenex@hotmail.com> writes:

    JE> You must be new to CLPM. I suggest you read his way off-topic,
    JE> unsubstantiated, and just plain wrong posting in the archives
    JE> of DejaNews.

Ken Tilton fills the same role in comp.lang.lisp that Xah Lee attempts
to fill in other fora; the principal difference is that Mr Tilton
appears to be able to write coherently in English and actually
understands the subjects he trolls about well enough to throw in valid
points among the trolling.

As comp.lang.perl.misc has enough resident trolls without importing
more from elsewhere, followups have been set.

Charlton




-- 
Charlton Wilbur
cwilbur@chromatico.net


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

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 V11 Issue 347
**************************************


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