[30996] in Perl-Users-Digest
Perl-Users Digest, Issue: 2241 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Mar 1 00:10:03 2009
Date: Sat, 28 Feb 2009 21:09:26 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 28 Feb 2009 Volume: 11 Number: 2241
Today's topics:
Re: Develop a PERL WEB SERVICE that utilizes the Yahoo <tim@burlyhost.com>
Re: Develop a PERL WEB SERVICE that utilizes the Yahoo <tim@burlyhost.com>
Re: Develop a PERL WEB SERVICE that utilizes the Yahoo <jurgenex@hotmail.com>
Re: Develop a PERL WEB SERVICE that utilizes the Yahoo <tfgordon@buffalo.edu>
Re: exit status of a perl script? <No_4@dsl.pipex.com>
Re: exit status of a perl script? <tim@burlyhost.com>
Re: exit status of a perl script? <tadmc@seesig.invalid>
Re: exit status of a perl script? <whynot@pozharski.name>
Re: exit status of a perl script? <nospam-abuse@ilyaz.org>
Re: exit status of a perl script? <tim@burlyhost.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 27 Feb 2009 13:19:35 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: Develop a PERL WEB SERVICE that utilizes the Yahoo Web Services API
Message-Id: <ONYpl.48587$uG1.23154@newsfe16.iad>
seef gordon wrote:
> Okay ben , please understand that am not asking for any one to spoon
> feed me the answer my teacher just send me that project to do , and I
> have no real idea where to start , I don't want the answer , I just
> want some  who knows perl to brake it down to me that all thanks for
> your response
Please don't post your reply above the text you're quoting, as it forces
people to read down to see what you're replying to. Please don't take
this the wrong way, but if you don't know where to start, your
instructor is not doing a good job, or you aren't paying attention to
what they've been teaching.
In the end, if you are given an assignment that you don't understand,
you are obligated to tell your instructor so they can help you (if not
to be able to within the confinements of what they've taught you thus
far), and it also might allow them to realize they've missed an
important aspect in their curriculum, which could help the entire
class. No one benefits if you aren't taught what to do, if you're
asked to do it.
Figuring it out on your own, potentially the wrong way, isn't going to
help either, if it deviates somehow from the actual assignment or if it
goes beyond the parameters the instructor expects you to use (like the
classic K&R book that asks you to use getchar() for their exercise,
when you'd want to use a better method (but you've not been taught that
yet, and if you do it, you probably expose the fact that you've gone
outside of the class environment and had other people do the work for
you).
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Fri, 27 Feb 2009 14:21:58 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: Develop a PERL WEB SERVICE that utilizes the Yahoo Web Services API
Message-Id: <aIZpl.62904$RJ7.52249@newsfe18.iad>
seef gordon wrote:
> Okay thanks for your response and to be honest as you probably already
> know you were right , the information was not taught to us It an
> online course . And the email stated just that so In had email my
> professor , but he as not responded so that why I came here , I did
> the project to the best of my ability which I just found out was wrong
> , but a friend came  over and helped me with soap is it was throwing
> error on the mac , any way thank to all who responded I got it finish
When you have some code, and if you run into an issue or have a
question, feel free to post that code and outline the question or
problem, and that's when you'll get the help.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Fri, 27 Feb 2009 04:14:18 -0800
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: Develop a PERL WEB SERVICE that utilizes the Yahoo Web Services API
Message-Id: <62mfq4t7m8gekrv67kq6ejvsrsup5rrar9@4ax.com>
[Top-posting corrected, please don't do that]
seef gordon <tfgordon@buffalo.edu> wrote:
>> seef gordon wrote:
>>> 1. Develop a PERL WEB SERVICE that [...]
>
>Okay I have this project to do for my perl class as extra credit but I
Good that you came clean, that's a very important first step.
>really don't know where exactly to start
First step would be to ask your teacher for some advice. That's what
teachers are being paid for.
jue
------------------------------
Date: Fri, 27 Feb 2009 17:00:18 -0500
From: seef gordon <tfgordon@buffalo.edu>
Subject: Re: Develop a PERL WEB SERVICE that utilizes the Yahoo Web Services API
Message-Id: <C5CDCCA2.408%tfgordon@buffalo.edu>
On 2/27/09 4:19 PM, in article ONYpl.48587$uG1.23154@newsfe16.iad, "Tim
Greer" <tim@burlyhost.com> wrote:
> seef gordon wrote:
>
>> Okay ben , please understand that am not asking for any one to spoon
>> feed me the answer my teacher just send me that project to do , and I
>> have no real idea where to start , I don't want the answer , I just
>> want some who knows perl to brake it down to me that all thanks for
>> your response
>
> Please don't post your reply above the text you're quoting, as it forces
> people to read down to see what you're replying to. Please don't take
> this the wrong way, but if you don't know where to start, your
> instructor is not doing a good job, or you aren't paying attention to
> what they've been teaching.
>
> In the end, if you are given an assignment that you don't understand,
> you are obligated to tell your instructor so they can help you (if not
> to be able to within the confinements of what they've taught you thus
> far), and it also might allow them to realize they've missed an
> important aspect in their curriculum, which could help the entire
> class. No one benefits if you aren't taught what to do, if you're
> asked to do it.
>
> Figuring it out on your own, potentially the wrong way, isn't going to
> help either, if it deviates somehow from the actual assignment or if it
> goes beyond the parameters the instructor expects you to use (like the
> classic K&R book that asks you to use getchar() for their exercise,
> when you'd want to use a better method (but you've not been taught that
> yet, and if you do it, you probably expose the fact that you've gone
> outside of the class environment and had other people do the work for
> you).
Okay thanks for your response and to be honest as you probably already know
you were right , the information was not taught to us It an online course .
And the email stated just that so In had email my professor , but he as not
responded so that why I came here , I did the project to the best of my
ability which I just found out was wrong , but a friend came over and
helped me with soap is it was throwing error on the mac , any way thank to
all who responded I got it finish
------------------------------
Date: Fri, 27 Feb 2009 23:47:15 +0000
From: Big and Blue <No_4@dsl.pipex.com>
Subject: Re: exit status of a perl script?
Message-Id: <A8KdnaBU0b4e5jXUnZ2dnUVZ8jOWnZ2d@pipex.net>
Ilya Zakharevich wrote:
>> If the program runs off the end without hitting an exit()
>> or die() operator, an implicit C<exit(0)> is provided to
>> indicate successful completion.
>
> What is the point of quoting Perl docs when one knows that in most
> cases it is wrong?
>
> perl -wle "system $^X, @ARGV and print $?>>8" -- -we "END{$? = 14}; 1"
> 14
In what way is it wrong in this case? Adding an *explicit* exit(0) does the same thing.
/usr/bin/perl -wle 'system $^X, @ARGV and print $?>>8; exit(0)' -- -we 'END{$? = 14}; 1'
It doesn't say that the exit code will be 0, just that an explicit exit(0) is added.
--
Just because I've written it doesn't mean that
either you or I have to believe it.
------------------------------
Date: Fri, 27 Feb 2009 16:01:31 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: exit status of a perl script?
Message-Id: <w9%pl.58669$6r1.55447@newsfe19.iad>
Ilya Zakharevich wrote:
> On 2009-02-27, Tad J McClellan <tadmc@seesig.invalid> wrote:
>> perldoc perlrun
>>
>> If the program runs off the end without hitting an exit()
>> or die() operator, an implicit C<exit(0)> is provided to
>> indicate successful completion.
>
> What is the point of quoting Perl docs when one knows that in most
> cases it is wrong?
Pardon?
> perl -wle "system $^X, @ARGV and print $?>>8" -- -we "END{$? = 14};
> 1" 14
Well, yeah, if you change the status or there's an issue, that's true,
but when the script exits cleanly without a problem, it would naturally
be an exit(0) status. Did you mean something else (i.e., not
specifying a non 0 status) to mean mean cases (*most cases where the
script ends without error)?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Fri, 27 Feb 2009 18:57:28 -0600
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: exit status of a perl script?
Message-Id: <slrngqh2vo.rt5.tadmc@tadmc30.sbcglobal.net>
Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:
> What is the point of quoting Perl docs when one knows that in most
> cases it is wrong?
What better reference would have us use instead?
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Sat, 28 Feb 2009 03:33:40 +0200
From: Eric Pozharski <whynot@pozharski.name>
Subject: Re: exit status of a perl script?
Message-Id: <slrngqh564.lft.whynot@orphan.zombinet>
On 2009-02-27, bugbear <bugbear@trim_papermule.co.uk_trim> wrote:
> RedGrittyBrick wrote:
*SKIP*
>> `perldoc perlrun` says "an implicit exit(0) is provided to indicate
>> successful completion"
>
> Ah - the myriad (obvious in hindsight...) sources
> of perl information.
Google falls on its face yet another time.
p.s. Whenever I google for 'perl' I'm supposed to buy pearls :[
--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
------------------------------
Date: Sat, 28 Feb 2009 22:56:44 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: exit status of a perl script?
Message-Id: <slrngqjgju.rsr.nospam-abuse@chorin.math.berkeley.edu>
On 2009-02-28, Tad J McClellan <tadmc@seesig.invalid> wrote:
> Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:
>
>
>> What is the point of quoting Perl docs when one knows that in most
>> cases it is wrong?
> What better reference would have us use instead?
Look at what Ben wrote. What did he use?
Yours,
Ilya
------------------------------
Date: Sat, 28 Feb 2009 15:57:14 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: exit status of a perl script?
Message-Id: <vbkql.28805$FI5.11351@newsfe07.iad>
Ilya Zakharevich wrote:
> On 2009-02-28, Tad J McClellan <tadmc@seesig.invalid> wrote:
>> Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:
>>
>>
>>> What is the point of quoting Perl docs when one knows that in most
>>> cases it is wrong?
>
>> What better reference would have us use instead?
>
> Look at what Ben wrote. What did he use?
>
> Yours,
> Ilya
I don't think Ben's example went against what Tad (or the documentation)
said. Ben's reply covered things like if the script is killed, ends
with a die, etc., none of which should change the fact that a script
exiting _without_ problems should have the exit status of 0. No one
opposed that certain circumstances, dies, errors, having the process
killed, etc. would have a different exit status, but I don't think
anyone would say that it's wrong in most cases. I think it's just the
way you're viewing of what could happen (which changes the variable).
I thought it was to answer the status when a script ends normally and
without problems, but perhaps I misread the question?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
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 2241
***************************************