[26189] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8378 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 1 06:05:13 2005

Date: Thu, 1 Sep 2005 03: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           Thu, 1 Sep 2005     Volume: 10 Number: 8378

Today's topics:
         Re: problem installing date::calc on win box <ron@savage.net.au>
    Re: Can a Perl Programmer Pick up PHP quickly? <joe@pong.tunestar.net>
    Re: Can a Perl Programmer Pick up PHP quickly? <john@castleamber.com>
        dear comp.lang.perl.announce readers tomstdenis@gmail.com
        dear comp.lang.perl.announce readers tomstdenis@gmail.com
    Re: problem installing date::calc on win box <sisyphus1@nomail.afraid.org>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Thu, 1 Sep 2005 18:14:31 +1000
From:     Ron Savage <ron@savage.net.au>
Subject:  Re: problem installing date::calc on win box
Message-Id: <200591181431.479232@ron>

On Thu, 1 Sep 2005 14:19:40 +1000, news-acct wrote:

Hi 

> get error msg:
> D:\scram\ner\ko\be> perl date1.pl
> Can't locate date.pm in @INC (@INC contains: C:/Perl/lib
> C:/Perl/site/lib .) at

But Perl is a case-sensitive language. You didn't write:

use date;

or

use data::calc;

by any chance?

If so, oh dear.





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

Date: Thu, 01 Sep 2005 09:00:26 GMT
From: Average_Joe <joe@pong.tunestar.net>
Subject: Re: Can a Perl Programmer Pick up PHP quickly?
Message-Id: <slrndhdgkf.uuq.joe@pong.tunestar.net>

On 2005-08-24, Mike <mike@nospam.com> wrote:
>
> I have a lot of experience with Perl and a good paying job has come up
> that requires someone to update and maintain a website written in PHP.
>
> Can a Perl programmer pick up PHP easily? Are there similarities?

You can probably pick up PHP just by sitting down with it for an evening.

It's very easy, some would say "easier" than perl. (note that "easier" !=
"better") 

PHP is kind of like a bleached perl. All the color has been drained out
and you're stuck with a rather boring environment. The "boringness" is
what makes it easier. The boringness is what takes all the fun out of it.

On the bright side, it has all kinds of web-specific stuff built in. It is very
much a language for web development. Much of the documentation will mention
differences between perl.

It has some warts though, the worst being that it's different on each host
with different features enabled, bleh bleh.. You can never really be sure
what you work on will run on another host. 

Also, if you're familiar with mode_perl, it'll drive you crazy that you can't
cache expensive objects / data structures the way you can in mod_perl.

Jamie
-- 
http://www.geniegate.com                     Custom web programming
User Management Solutions                   Perl / PHP / Java / UNIX



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

Date: 1 Sep 2005 09:18:31 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: Can a Perl Programmer Pick up PHP quickly?
Message-Id: <Xns96C42BAC16542castleamber@130.133.1.4>

Average_Joe <joe@pong.tunestar.net> wrote:
 
> You can probably pick up PHP just by sitting down with it for an
> evening.

*sniggers* Only if you have little understanding of Perl and little 
understanding of PHP is required.
 
> It's very easy, some would say "easier" than perl. (note that "easier"
> != "better") 

And some would say much harder than Perl especially with a solid Perl 
background.

If there was such a thing as an easy programming language it would have 
been invented 40 years ago.

-- 
John                   Small Perl scripts: http://johnbokma.com/perl/
               Perl programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html
                        


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

Date: Thu, 01 Sep 2005 09:33:53 GMT
From: tomstdenis@gmail.com
Subject: dear comp.lang.perl.announce readers
Message-Id: <feb2c0e5.9a5edb52.tomstdenis@gmail.com>

-----BEGIN xxx SIGNED MESSAGE-----
Hash: SHA1

It's getting a bit tiresome seeing one misguided American after another with 
their cutsie little yellow or red-white-blue ribbons on their outsized SUVs. 
Yeah, I guess it's the thing to do; maybe part of that whole soccer-mom 
culture. Unfortunately, the only thing they demonstrate is that the person 
behind the wheel is a clueless, gullible, misguided, nitwit. 

If foreign invaders landed on our soil, as we have done in Iraq, I would be 
the first one to take up arms and repel them. (I suppose that would make me 
an 'insurgent' by OUR logic.) This, and other aggressive governments have 
always done their utmost to make it APPEAR as if committing yourself to kill 
in feuds on distant shores that have nothing to do with the welfare of the 
citizenry is somehow patriotic. 

It is not. 

Enlisting in the armed forces, in the absence of a real and impending 
foreign threat, is no different that hiring yourself as a paid assassin . . 
the only difference is, you're not getting paid enough. But let's take a 
realistic look at exactly WHO joins up in an all-volunteer army. 

The first group are those who join (during peacetime) for the benefits: to 
get an education, or because it seems a reasonable career path. Consider 
carefully! Realize that you are gambling with your humanity. Once you sign 
that form, you sign away your right to say: "No, that is an atrocity." You 
put your abilities, including the ability to kill, at the disposal of proven 
liars, psychopaths . . . enemies of humanity. Do you think that every German 
soldier in World War II who helped load Jews into cattle cars was a 
cold-blooded killer? Most were poor kids, just like you, who got caught up 
in the patriotic frenzy. Once you're in, you're IN. You lose the ability to 
stop killing until they tell you so. This not only makes you less than 
human, it makes you less than an animal, for even the animals retain their 
freedom of self determination. 

The second group are the simple minded, who fall for patriotic entreaties 
about  defending democracy, Mom, apple pie; in other words, all the 
traditional government propaganda. Do you think Soviet lads subjugated their 
neighbors throughout the world because they thought the Soviet Union was an 
EVIL empire? No, they were fighting for MOM, and whatever passes for apple 
pie in Russia. Step back and examine the lies your government is handing 
you, and ask yourself if they have the ring of truth. Do you want to be one 
of the murderers in uniform who opened up on their fellow citizens at Kent 
State? When you put on that uniform, you give up all autonomy, and become 
nothing more than a weapon, to be used for whatever evil purposes the 
scoundrels in government demand (and, if you look carefully, you will 
discover that the only interests THEY serve are those of the big businesses 
that own them.) 

Finally, you have the hard-core psychopaths. These are the people who WANT 
to kill. Murder, torture, rape; THESE are the American values upon which 
THIS group is focused. The cause doesn't matter, they're after the thrill 
that only warfare can provide. 

Just remember: killing for George W. Bush, or for George H.W. Bush, or for 
Lyndon B. Johnson, or for Richard M. Nixon is not the same as defending 
yourself, your family, your friends, or your country. Don't be a dupe. Don't 
Enlist! 

Remember -- supporting the troops means supporting Bush aggression, 
profiteering, and war crimes. Here's an idea: why not take those ribbons, 
dip them in blood, and mail them to the White House? 

- -- 
Tom St.Denis 

111 Banning Rd 
Kanata, Ontario 
K2L 1C3 
Canada 

Home: (613)836-3160 
Cell: (613)796-8220 

tomstdenis@gmail.com
KeyID: 0x40B640D5
Fingerprint: 53F9 307F F83E D52A 9E63
             C2A5 B43F D952 40B6 40D5

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x40B640D5

-----BEGIN xxx SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQxLVO7Q/2VJAtkDVEQJnnQCg1mRyNVgZ6Po6Xf7csn62Ph9rkC8AoMxZ
Zo8jLvfr6bDGWZb/PhEpz3c8
=2NAY
-----END PGP SIGNATURE-----



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

Date: Thu, 01 Sep 2005 09:38:02 GMT
From: tomstdenis@gmail.com
Subject: dear comp.lang.perl.announce readers
Message-Id: <6e850b19.b1a151dc.tomstdenis@gmail.com>

-----BEGIN xxx SIGNED MESSAGE-----
Hash: SHA1

It's getting a bit tiresome seeing one misguided American after another with 
their cutsie little yellow or red-white-blue ribbons on their outsized SUVs. 
Yeah, I guess it's the thing to do; maybe part of that whole soccer-mom 
culture. Unfortunately, the only thing they demonstrate is that the person 
behind the wheel is a clueless, gullible, misguided, nitwit. 

If foreign invaders landed on our soil, as we have done in Iraq, I would be 
the first one to take up arms and repel them. (I suppose that would make me 
an 'insurgent' by OUR logic.) This, and other aggressive governments have 
always done their utmost to make it APPEAR as if committing yourself to kill 
in feuds on distant shores that have nothing to do with the welfare of the 
citizenry is somehow patriotic. 

It is not. 

Enlisting in the armed forces, in the absence of a real and impending 
foreign threat, is no different that hiring yourself as a paid assassin . . 
the only difference is, you're not getting paid enough. But let's take a 
realistic look at exactly WHO joins up in an all-volunteer army. 

The first group are those who join (during peacetime) for the benefits: to 
get an education, or because it seems a reasonable career path. Consider 
carefully! Realize that you are gambling with your humanity. Once you sign 
that form, you sign away your right to say: "No, that is an atrocity." You 
put your abilities, including the ability to kill, at the disposal of proven 
liars, psychopaths . . . enemies of humanity. Do you think that every German 
soldier in World War II who helped load Jews into cattle cars was a 
cold-blooded killer? Most were poor kids, just like you, who got caught up 
in the patriotic frenzy. Once you're in, you're IN. You lose the ability to 
stop killing until they tell you so. This not only makes you less than 
human, it makes you less than an animal, for even the animals retain their 
freedom of self determination. 

The second group are the simple minded, who fall for patriotic entreaties 
about  defending democracy, Mom, apple pie; in other words, all the 
traditional government propaganda. Do you think Soviet lads subjugated their 
neighbors throughout the world because they thought the Soviet Union was an 
EVIL empire? No, they were fighting for MOM, and whatever passes for apple 
pie in Russia. Step back and examine the lies your government is handing 
you, and ask yourself if they have the ring of truth. Do you want to be one 
of the murderers in uniform who opened up on their fellow citizens at Kent 
State? When you put on that uniform, you give up all autonomy, and become 
nothing more than a weapon, to be used for whatever evil purposes the 
scoundrels in government demand (and, if you look carefully, you will 
discover that the only interests THEY serve are those of the big businesses 
that own them.) 

Finally, you have the hard-core psychopaths. These are the people who WANT 
to kill. Murder, torture, rape; THESE are the American values upon which 
THIS group is focused. The cause doesn't matter, they're after the thrill 
that only warfare can provide. 

Just remember: killing for George W. Bush, or for George H.W. Bush, or for 
Lyndon B. Johnson, or for Richard M. Nixon is not the same as defending 
yourself, your family, your friends, or your country. Don't be a dupe. Don't 
Enlist! 

Remember -- supporting the troops means supporting Bush aggression, 
profiteering, and war crimes. Here's an idea: why not take those ribbons, 
dip them in blood, and mail them to the White House? 

- -- 
Tom St.Denis 

111 Banning Rd 
Kanata, Ontario 
K2L 1C3 
Canada 

Home: (613)836-3160 
Cell: (613)796-8220 

tomstdenis@gmail.com
KeyID: 0x40B640D5
Fingerprint: 53F9 307F F83E D52A 9E63
             C2A5 B43F D952 40B6 40D5

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x40B640D5

-----BEGIN xxx SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQxLVO7Q/2VJAtkDVEQJnnQCg1mRyNVgZ6Po6Xf7csn62Ph9rkC8AoMxZ
Zo8jLvfr6bDGWZb/PhEpz3c8
=2NAY
-----END PGP SIGNATURE-----



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

Date: Thu, 1 Sep 2005 17:13:39 +1000
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: problem installing date::calc on win box
Message-Id: <4316aa64$0$17734$afc38c87@news.optusnet.com.au>


"news-acct" <not_valid2@yahoo.com> wrote in message
>
> get error msg:
>         D:\scram\ner\ko\be> perl date1.pl
>         Can't locate date.pm in @INC (@INC contains: C:/Perl/lib
> C:/Perl/site/lib .) at
>         BEGIN failed--compilation aborted at date1.pl line 2.
>
> the module does exist in:  C:\Perl\site\lib\Date\Calc.pm
>

You should also have shown us what date1.pl contains. The error message
indicates that somewhere in your script you have written:

use date;

If you want to load the Date::Calc module, you need to change that to:

use Date::Calc;

Cheers,
Rob




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

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


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