[25119] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 7369 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Nov 6 18:10:53 2004

Date: Sat, 6 Nov 2004 15:10:12 -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, 6 Nov 2004     Volume: 10 Number: 7369

Today's topics:
        casting question <nospam@nospam.com>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <nospam@nospam.com>
    Re: casting question <daveandniki@ntlworld.com>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <nospam@nospam.com>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <nospam@nospam.com>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <lwt0301@bellsouth.net>
    Re: casting question <nospam@nospam.com>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <nospam@nospam.com>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <nospam@nospam.com>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <nospam@nospam.com>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <nospam@nospam.com>
    Re: casting question <1usa@llenroc.ude.invalid>
    Re: casting question <nospam@nospam.com>
    Re: casting question <jurgenex@hotmail.com>
    Re: casting question <spamtrap@dot-app.org>
    Re: casting question <spamtrap@dot-app.org>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Sat, 6 Nov 2004 14:17:48 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: casting question
Message-Id: <1099768917.343772@nntp.acecape.com>

hi all,

i have in my code

my $IMobj = Mail::Internet->new($$array_ref[$y]);

which gives me the object....from the watch in the debugger I have

{$IMobj->{mail_inet_body}}

which shows as type ARRAY.

so i wrote

foreach $email_line ({$IMobj->{mail_inet_body}})

assuming that that was the proper way, and of course the compiler reads it
as scalar and doesn't accept it ... so am unsure how to CAST it
properly...not even sure that CAST is the right word to use in Perl...

I guess thought if i could see it as an array in WATCH, that the same format
would apply to code itself, no?

thanks ahead,

daniel






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

Date: 6 Nov 2004 19:31:43 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns959993CC32BD7asu1cornelledu@132.236.56.8>

"daniel kaplan" <nospam@nospam.com> wrote in
news:1099768917.343772@nntp.acecape.com: 

> hi all,
> 
> i have in my code
> 
> my $IMobj = Mail::Internet->new($$array_ref[$y]);
> 
> which gives me the object....from the watch in the debugger I have
> 
> {$IMobj->{mail_inet_body}}
> 
> which shows as type ARRAY.
> 
> so i wrote
> 
> foreach $email_line ({$IMobj->{mail_inet_body}})

Posting isolated bits and pieces of code completely devoid of context is 
not a good way to ensure that you get answers. Don't do that. Post a 
small, self-contained script that does not do what you want and give an 
explanation of what you want.

It seems to me that you still have not read the posting guidelines, you 
are still not using strict and warnings and hence you deserve whatever 
you get yourself into.

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



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

Date: Sat, 6 Nov 2004 14:55:10 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099770968.905090@nntp.acecape.com>

"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns959993CC32BD7asu1cornelledu@132.236.56.8...

> Posting isolated bits and pieces of code completely devoid of context is
> not a good way to ensure that you get answers. Don't do that. Post a
> small, self-contained script that does not do what you want and give an
> explanation of what you want.
>
> It seems to me that you still have not read the posting guidelines, you
> are still not using strict and warnings and hence you deserve whatever
> you get yourself into.

>>are still not using strict and warnings
of courrse i am

seriously sinan, just stop answering my posts..you waste your time, my time,
and anyone else's who likes to read threads.

these are the only two line that matter, to post 2 pages of code is a waste,
especially since the code works, i have to go and change passwords and
URLs...

so where is the harm, this is the object i have
my $IMobj = Mail::Internet->new($$array_ref[$y]);

and would like to use the array
{$IMobj->{mail_inet_body}

within a foreach loop , yet every way i type it ....i.e.  foreach
$email_line ({$IMobj->{mail_inet_body}})
the compiler sees it as a scalar...

besides, it is a CASTING question is what it is, nothing more...

seriosuly, what is your problem? some guy here just posted "how do i save to
a file" not only did some people just
answer him, but those that sent him to the perldoc, did so without
attitude....

i have a CASTING question, nothing more....have a problem with me, stop
please killfile me, stop reading my posts, and stop being such a miserable
wretch of a human being.




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

Date: Sat, 06 Nov 2004 20:04:37 GMT
From: "Dave" <daveandniki@ntlworld.com>
Subject: Re: casting question
Message-Id: <p7ajd.2770$zf.887@newsfe3-win.ntli.net>


"daniel kaplan" <nospam@nospam.com> wrote in message 
news:1099770968.905090@nntp.acecape.com...
> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns959993CC32BD7asu1cornelledu@132.236.56.8...
>
>> Posting isolated bits and pieces of code completely devoid of context is
>> not a good way to ensure that you get answers. Don't do that. Post a
>> small, self-contained script that does not do what you want and give an
>> explanation of what you want.
>>
>> It seems to me that you still have not read the posting guidelines, you
>> are still not using strict and warnings and hence you deserve whatever
>> you get yourself into.
>
>>>are still not using strict and warnings
> of courrse i am
>
> seriously sinan, just stop answering my posts..you waste your time, my 
> time,
> and anyone else's who likes to read threads.
>
> these are the only two line that matter, to post 2 pages of code is a 
> waste,
> especially since the code works, i have to go and change passwords and
> URLs...
>
> so where is the harm, this is the object i have
> my $IMobj = Mail::Internet->new($$array_ref[$y]);
>
> and would like to use the array
> {$IMobj->{mail_inet_body}
>
> within a foreach loop , yet every way i type it ....i.e.  foreach
> $email_line ({$IMobj->{mail_inet_body}})
> the compiler sees it as a scalar...
>
> besides, it is a CASTING question is what it is, nothing more...
>
> seriosuly, what is your problem? some guy here just posted "how do i save 
> to
> a file" not only did some people just
> answer him, but those that sent him to the perldoc, did so without
> attitude....
>
> i have a CASTING question, nothing more....have a problem with me, stop
> please killfile me, stop reading my posts, and stop being such a miserable
> wretch of a human being.
>
>

Just a guess as I haven't looked into it, but try removing the outer pair of 
{}, they don't seem to be appropriate in the context.

Dave




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

Date: 6 Nov 2004 20:33:21 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns95999E3F5FB86asu1cornelledu@132.236.56.8>

"daniel kaplan" <nospam@nospam.com> wrote in
news:1099770968.905090@nntp.acecape.com: 

> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns959993CC32BD7asu1cornelledu@132.236.56.8...
> 
>> ... you are still not using strict and warnings

> of courrse i am
 ...

> foreach $email_line ({$IMobj->{mail_inet_body}})
> the compiler sees it as a scalar...

It looks to me like you ain't using strict because I do not see a 
declaration of $email_line before its first use.

> besides, it is a CASTING question is what it is, nothing more...

Oh yes it is. For example, why on God's green earth are you mucking about 
with the internals of the Mail::Internet object?

Mail::Internet has a public interface. That is what you are supposed to 
use. You get the message body using the Body method. That is a reference to 
an array. You need to dereference that. You could not have been much of a C 
programmer not knowing the difference between casting and dereferencing.

> seriosuly, what is your problem? some guy here just posted "how do i
> save to a file" not only did some people just answer him, but those that 
> sent him to the perldoc, did so without attitude....

That was his first time. He hasn't come back yelling at people who have 
given him good advice.

> i have a CASTING question, nothing more....have a problem with me,
> stop please killfile me, stop reading my posts

You do not have a casting question. You have a problem that has been caused 
by the fact that you went mucking about the internals of the Mail::Internet 
object you created. You are not following good practices. Your posts are 
available to the whole wide world to see on Google. If your errors remain 
uncorrected, someone, somewhere down the road might see them and think "A-
ha, maybe this is the way to go". All of us are trying to prevent that from  
happening.

Sinan.

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



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

Date: 6 Nov 2004 20:36:28 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns95999EC6BCA87asu1cornelledu@132.236.56.8>

"Dave" <daveandniki@ntlworld.com> wrote in
news:p7ajd.2770$zf.887@newsfe3-win.ntli.net: 

> Just a guess as I haven't looked into it, but try removing the outer
> pair of {}, they don't seem to be appropriate in the context.

Please do not guess. The documentation for the module the OP is using 
clearly states what public interface it provides. All access to instance 
data must be mediated through that public interface.

An instance of Mail::Internet provides access to the lines of the body of 
the message through the Body method. One can also access the whole message 
using the as_string method.

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



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

Date: Sat, 6 Nov 2004 15:37:59 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099773538.900021@nntp.acecape.com>

"Dave" <daveandniki@ntlworld.com> wrote in message
news:p7ajd.2770$zf.887@newsfe3-win.ntli.net...
> Just a guess as I haven't looked into it, but try removing the outer pair
of
> {}, they don't seem to be appropriate in the context.

thanks for the suggestion dave, and for making it without kicking me in the
teeth,

here are just a few of the ones that i have tried and they all give the same
error msg

        Scalar found where operator expected

foreach $email_line ( $$IMobj->{mail_inet_body} )
foreach $email_line ( $IMobj->{mail_inet_body} )
foreach $email_line ( {$IMobj->{mail_inet_body}} )
foreach $email_line (@{$IMobj->{mail_inet_body}})

and since in the watch window of the debugger {$IMobj->{mail_inet_body}} is
seen as type ARRAY, i just assumed that that woudl apply to all Perl,

i would assume, that this is just a casting question....but as they always
say, never assume, cause when you assume, you make an a** out ot me and me
;-)





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

Date: Sat, 06 Nov 2004 15:55:55 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <V6KdnWtIc7jGpxDcRVn-iA@adelphia.com>

daniel kaplan wrote:

> my $IMobj = Mail::Internet->new($$array_ref[$y]);

The docs for Mail::Internet say that options may be passed as key-value 
pairs, like a hash. Why aren't you doing what the docs say to do?

> so i wrote
> 
> foreach $email_line ({$IMobj->{mail_inet_body}})

The docs for Mail::Internet say that the body() method is how to 
retrieve the body of the email. Why aren't you doing what the docs say 
to do?

> assuming that that was the proper way

It's not, and no assuming is necessary to see that. Why aren't you doing 
what the docs say to do?

> I guess thought if i could see it as an array in WATCH, that the same format
> would apply to code itself, no?

No. Why are you guessing instead of reading the docs for the module 
you're using?

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 6 Nov 2004 15:59:00 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099774800.444616@nntp.acecape.com>

"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns95999E3F5FB86asu1cornelledu@132.236.56.8...

> It looks to me like you ain't using strict because I do not see a
> declaration of $email_line before its first use.
it's declarted, otherwie the error would be a little more obvious...i do all
my declares at the top of a subroutine (habit)


> Oh yes it is. For example, why on God's green earth are you mucking about
> with the internals of the Mail::Internet object?
define mucking, am trying to pull the values out of the array

>You could not have been much of a C  programmer not knowing the difference
between casting and dereferencing.
yeah, let's not go and judge each other on how little we know of each
other...you don't know what i have done, gotten paid, gotten recognized for,
as the same applies to me looking at you....

if  i were to judge you by just your posts, which is all you have of me and
laid judgement thereaftrer, i would judge you to be one anti-social,
miserable human being, who needs go out and get a girl (or a guy if you
refer...i don't judge there either....actually your hostility towards me
might tend me to say it's the latter )....but i'll refrain from such
judgements till we get to know each other

> You do not have a casting question. You have a problem that has been
caused
> by the fact that you went mucking about the internals of the
Mail::Internet
> object you created. You are not following good practices. Your posts are
> available to the whole wide world to see on Google. If your errors remain
> uncorrected, someone, somewhere down the road might see them and think "A-
> ha, maybe this is the way to go". All of us are trying to prevent that
from
> happening.
obviosuly OBJECTS are new to me as well as Perl, which is why in my OP i
said i clarified that i might have a casting problem...
and anyone finding my posts via a google search who would copy from my posts
where i say "help me, this doesn't work"...well hey, that's an obvious
one...

daniel




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

Date: Sat, 06 Nov 2004 16:02:55 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <wPKdnQTcRq5iphDcRVn-sQ@adelphia.com>

daniel kaplan wrote:

> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns959993CC32BD7asu1cornelledu@132.236.56.8...
> 
>>>are still not using strict and warnings
> 
> of courrse i am

Then post your real code. The code you posted does not compile when 
strict is enabled.

> besides, it is a CASTING question is what it is, nothing more...

Bullshit. Type casting is a C question. Perl is not C. Perl is weakly 
typed, and no type casting is supported or needed.

> answer him, but those that sent him to the perldoc, did so without
> attitude....

Those who did so to your first question also did so without attitude.

After several more questions that showed your complete unwillingness to 
read and/or search the docs - including this one - you're getting 
exactly the responses your "please spoon-feed me" questions warrant.

You're reaping what you've sown here, nothing more or less.

> i have a CASTING question, nothing more

Then post your question to a language group where type casting is relevant.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: 6 Nov 2004 21:03:30 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns9599A35C16407asu1cornelledu@132.236.56.8>

"daniel kaplan" <nospam@nospam.com> wrote in
news:1099774800.444616@nntp.acecape.com: 

> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns95999E3F5FB86asu1cornelledu@132.236.56.8...
> 
>> It looks to me like you ain't using strict because I do not see a
>> declaration of $email_line before its first use.

> it's declarted, otherwie the error would be a little more obvious...i
> do all my declares at the top of a subroutine (habit)

Bad habit.

>> Oh yes it is. For example, why on God's green earth are you mucking
>> about with the internals of the Mail::Internet object?

> define mucking, am trying to pull the values out of the array

Not using the object's public interface that is documented in its 
documents.

>>You could not have been much of a C  programmer not knowing the
>>difference between casting and dereferencing.

> yeah, let's not go and judge each other on how little we know of each
> other...you don't know what i have done, gotten paid, gotten
> recognized for, as the same applies to me looking at you....

Maybe this one:

http://www.palmbeachpost.com/politics/content/news/epaper/2004/11/05/a29a
_BROWVOTE_1105.html

> obviosuly OBJECTS are new to me as well as Perl, 

Then you should read and follow the documents.

Sinan.

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



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

Date: Sat, 06 Nov 2004 16:05:34 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <wPKdnQfcRq4DoRDcRVn-sQ@adelphia.com>

daniel kaplan wrote:

> thanks for the suggestion dave, and for making it without kicking me in the
> teeth,

Dave's suggestion was gibberish, but you're thanking him for it simply 
because it was polite gibberish?

Idiot.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 06 Nov 2004 16:08:28 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <wPKdnQbcRq7RoBDcRVn-sQ@adelphia.com>

daniel kaplan wrote:

> obviosuly OBJECTS are new to me as well as Perl

So why haven't you read the OOP tutorial that comes with Perl?

perldoc perltoot

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 06 Nov 2004 17:08:18 -0500
From: Laura <lwt0301@bellsouth.net>
Subject: Re: casting question
Message-Id: <10oqfg5epcghdc7@news.supernews.com>

A. Sinan Unur wrote:

> "Dave" <daveandniki@ntlworld.com> wrote in
> news:p7ajd.2770$zf.887@newsfe3-win.ntli.net:
> 
>> Just a guess as I haven't looked into it, but try removing the outer
>> pair of {}, they don't seem to be appropriate in the context.
> 
> Please do not guess. The documentation for the module the OP is using
> clearly states what public interface it provides. All access to instance
> data must be mediated through that public interface.
> 
> An instance of Mail::Internet provides access to the lines of the body of
> the message through the Body method. One can also access the whole message
> using the as_string method.
> 
> Sinan

This thread seems like an advertisement for the benefits of C++ and
restricted access to private and protected class methods and members.

Can you use C++ class libraries in Perl?

I think that's what Microsoft's goal is with .net, to bring all languages
together with a common class library.

A future version of Perl will surely implement restricted access in classes
like C++.  Those guys really thought out the OO thing carefully.

All languages, as they mature, become more C++-like.


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

Date: Sat, 6 Nov 2004 16:18:46 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099775987.177416@nntp.acecape.com>

"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns95999E3F5FB86asu1cornelledu@132.236.56.8...
>>Mail::Internet has a public interface. That is what you are supposed to
> use. You get the message body using the Body method. That is a reference
to
> an array. You need to dereference that.

and whether you believe me or not, thanks, cause the above is the
answer...rather than looking within the object i shoudl use the object, am
C, not C++ guy....would have saved us both alot of typing had you just said
that...

would still very much like to figure out the syntax tho for my first
headache... and shouldn't casting and derefencing be the same thing?  aren't
they both NO-OP?




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

Date: 6 Nov 2004 21:30:22 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns9599A7EA43AEFasu1cornelledu@132.236.56.8>

Laura <lwt0301@bellsouth.net> wrote in
news:10oqfg5epcghdc7@news.supernews.com: 

> A. Sinan Unur wrote:
> 
>> "Dave" <daveandniki@ntlworld.com> wrote in
>> news:p7ajd.2770$zf.887@newsfe3-win.ntli.net:
>> 
>>> Just a guess as I haven't looked into it, but try removing the outer
>>> pair of {}, they don't seem to be appropriate in the context.
>> 
>> Please do not guess. The documentation for the module the OP is using
>> clearly states what public interface it provides. All access to
>> instance data must be mediated through that public interface.
>> 
>> An instance of Mail::Internet provides access to the lines of the
>> body of the message through the Body method. One can also access the
>> whole message using the as_string method.
>> 
>> Sinan
> 
> This thread seems like an advertisement for the benefits of C++ and
> restricted access to private and protected class methods and members.

What is it today? Are all the people with IQ's below room temperature 
online?

http://www.parashift.com/c++-faq-lite/classes-and-objects.html#faq-7.6
-- 
A. Sinan Unur
1usa@llenroc.ude.invalid 
(remove '.invalid' and reverse each component for email address)



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

Date: Sat, 6 Nov 2004 16:31:27 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099776747.423598@nntp.acecape.com>

"Sherm Pendley" <spamtrap@dot-app.org> wrote in message
news:V6KdnWtIc7jGpxDcRVn-iA@adelphia.com...

> The docs for Mail::Internet say that the body() method is how to
> retrieve the body of the email. Why aren't you doing what the docs say
> to do?

thank you for pointing out my actual error....as i just explained in another
post, am just C, not C++, so learning objects as well as Perl...from being a
C guy, i guess i just followed 'that' instinct, which was to just seeobjects
as just structures to use and go into, if that makes sense....obviously will
have to be more assertive and dtop looking at allt his from my old point of
view...

again, thank you for pointing out my actual error








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

Date: 6 Nov 2004 21:35:09 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns9599A8B98ABE1asu1cornelledu@132.236.56.8>

"daniel kaplan" <nospam@nospam.com> wrote in
news:1099775987.177416@nntp.acecape.com: 

> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns95999E3F5FB86asu1cornelledu@132.236.56.8...

>>>Mail::Internet has a public interface. That is what you are supposed
>>>to use. You get the message body using the Body method. That is a
>> reference to an array. You need to dereference that.

> would have saved us both alot of typing had you just said that...

Would have saved both of us a lot of typing and you a lot of 
embarrassment had you read the documentation first.

> would still very much like to figure out the syntax tho for my first
> headache... and shouldn't casting and derefencing be the same thing? 
> aren't they both NO-OP?

Uh-oh!

http://dspace.dial.pipex.com/town/green/gfd34/art/

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



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

Date: Sat, 6 Nov 2004 16:37:15 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099777096.34154@nntp.acecape.com>

"Sherm Pendley" <spamtrap@dot-app.org> wrote in message
news:wPKdnQfcRq4DoRDcRVn-sQ@adelphia.com...

> Dave's suggestion was gibberish, but you're thanking him for it simply
> because it was polite gibberish?

always thank someone who "attempts" to help you, someone who took the time
to respond, whether they were right or wrong....it's someone who stopped for
one moment during their possibly possible to try try and lend a hand to a
stranger....always thank them for that, otherwise you become, well , like
you...

> Idiot.

exactly!

daniel




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

Date: Sat, 06 Nov 2004 16:41:13 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <jcidnR7Q7v1k2RDcRVn-oA@adelphia.com>

Laura wrote:

> This thread seems like an advertisement for the benefits of C++ and
> restricted access to private and protected class methods and members.

Good programmers have the common sense and self discipline to respect 
object boundaries without being forced to. Bad programmers blame the 
language they're using when they make foolish decisions.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 6 Nov 2004 16:43:10 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099777451.265092@nntp.acecape.com>

"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns9599A35C16407asu1cornelledu@132.236.56.8...

> > it's declarted, otherwie the error would be a little more obvious...i
> > do all my declares at the top of a subroutine (habit)
>
> Bad habit.

may i, in all seriousness,  ask why?  to me it just seems to make for neater
code..

> Maybe this one:
>
> http://www.palmbeachpost.com/politics/content/news/epaper/2004/11/05/a29a
> _BROWVOTE_1105.html

wow, that's good, you reached really far for that one....want to resort t
name calling?  fine...can i invite you to do that again personally via my
email?  or would you rather contniue to clutter up the threads here with
more useless name calling...

wow, i just realized....you (and others) scream about the noise level hear,
and how it drives good people away.  yet, whenever i have inited anyone (and
definitly you) to take the insults, and personal stuff to email, you
don't....yet you contniue to write useless posts here...who's really at
fault for making the noise level then?  remember, the least common
denominator in every f-ed up relationship you have ever had, is "you"

TA!

daniel




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

Date: Sat, 06 Nov 2004 16:44:30 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <jcidnRnQ7v0g2BDcRVn-oA@adelphia.com>

daniel kaplan wrote:

> always thank someone who "attempts" to help you

Try following your own advice. Many people here have attempted to help 
you, and given you *much* better advice than the person you thanked - 
and you yelled at them and called them names in return.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 6 Nov 2004 16:44:40 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099777540.951707@nntp.acecape.com>

"Sherm Pendley" <spamtrap@dot-app.org> wrote in message
news:wPKdnQTcRq5iphDcRVn-sQ@adelphia.com...

> Then post your real code. The code you posted does not compile when
> strict is enabled.>
> > besides, it is a CASTING question is what it is, nothing more...
>
> Bullshit. Type casting is a C question. Perl is not C. Perl is weakly
> typed, and no type casting is supported or needed.

read my OP about me thinking this was a cating question....

> Those who did so to your first question also did so without attitude.
read again shermy

daniel




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

Date: 6 Nov 2004 21:50:30 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: casting question
Message-Id: <Xns9599AB5419EF6asu1cornelledu@132.236.56.8>

"daniel kaplan" <nospam@nospam.com> wrote in news:1099777540.951707
@nntp.acecape.com:

> "Sherm Pendley" <spamtrap@dot-app.org> wrote in message
> news:wPKdnQTcRq5iphDcRVn-sQ@adelphia.com...

>> Those who did so to your first question also did so without attitude.

> read again shermy

Here is the earliest post by you that I could find:

http://tinyurl.com/62yhw

Read again.

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



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

Date: Sat, 6 Nov 2004 16:51:52 -0500
From: "daniel kaplan" <nospam@nospam.com>
Subject: Re: casting question
Message-Id: <1099777972.964295@nntp.acecape.com>

"Sherm Pendley" <spamtrap@dot-app.org> wrote in message
news:wPKdnQbcRq7RoBDcRVn-sQ@adelphia.com...
> daniel kaplan wrote:

> So why haven't you read the OOP tutorial that comes with Perl?

and i have, and keep re-reading it (and the references chapter) during
breaks....as i explained in a previous POST, it's just a C habit....there's
a structure, let's go inside for a look, use what we can, etc. etc.  and
again, as i said, i have noticed that i am doing that, and will try more
diligently to take off my C glasses, and empty my cup of tea, etc...

ending this thread, NOW....won't even read another post in it....

i again thank EVERYONE who tried to help, and regardless of attitude to
those that poitned me to my actuall error, where today's lesson was that
"an object is to be USED, not PERUSED..."

daniel




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

Date: Sat, 06 Nov 2004 21:59:15 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: casting question
Message-Id: <TObjd.1009$rx5.616@trnddc06>

daniel kaplan wrote:
> obviosuly OBJECTS are new to me as well as Perl, which is why in my
> OP i said i clarified that i might have a casting problem...

Now, in which way could objects and casting possibly be related?
The one has absolutely nothing to do with the other.

The only place in Perl where you might find something like "casting" is to 
add a 0 to get the numerical value of a scalar or append an empty string to 
get the text value. But even to call that casting would be a stretch.

jue 




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

Date: Sat, 06 Nov 2004 17:01:22 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <D76dnefY3MAv1BDcRVn-sg@adelphia.com>

daniel kaplan wrote:

> "Sherm Pendley" <spamtrap@dot-app.org> wrote in message
> news:wPKdnQTcRq5iphDcRVn-sQ@adelphia.com...
> 
>>Bullshit. Type casting is a C question. Perl is not C. Perl is weakly
>>typed, and no type casting is supported or needed.
> 
> read my OP about me thinking this was a cating question....

It doesn't matter *why* you thought it was a type casting question. The 
fact remains that type casting is not at all relevant to Perl.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

Date: Sat, 06 Nov 2004 17:10:18 -0500
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: casting question
Message-Id: <p-ednbo-lolX1hDcRVn-sA@adelphia.com>

daniel kaplan wrote:

> it's just a C habit....there's
> a structure, let's go inside for a look, use what we can, etc. etc.

For what it's worth, it's been my experience that the idea of "opaque 
structures" (aka objects) is becoming more common in C too. Obviously in 
C you'd write it as "do_something(obj,...)" instead of 
"obj->do_something(...)", but that's just a trivial matter of syntax. 
The high-level concept isn't really all that different.

The C toolkits I'm most familiar with - Gtk (Linux) and Core Foundation 
(Mac) - make *heavy* use of the idea. Perhaps it's not as popular in the 
Windows world you're coming from.

> ending this thread, NOW....won't even read another post in it....

Read or not, as you wish, but you're not the boss of this group. You 
can't end the thread.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


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

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


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