For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > April 2004 > Re: usenet What is "Using an array as a reference is deprecated at ...."









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: usenet What is "Using an array as a reference is deprecated at ...."
Shahriar

2004-04-21, 2:32 am

Well, I had posted some questions to "comp.lang.perl.moderated" a while back
and did not get
much response. I have been doing some work with PTk to clean up some my code
that I have been using
for quite while and give it it a UI to make the users happy. This is the
first time I have seen this warning.
This happened during test of a Tk module that I just finished.

If this is not a good place, where do you think is a good place to post
questions like this?

Thank you for your time and quick response

Regards,

-shahriar


"Marc Dashevsky" <usenet@MarcDashevsky.com> wrote in message
news:MPG.1aefc2288d24217b989911@netnews.comcast.net...
> Shahriar says in article

<Kemhc.53703$Rf1.34832@newssvr25.news.prodigy.com>:
>
> It means you are using an array as a reference, e.g.,
>
> my @a;
> @a->[0] = 0;
>
> and that this practice is disapproved of. It also probably means that
> you have a coding error. What I'm trying to figure out is why you posted
> this to a perl/Tk newsgroup. I'll give you credit for using warnings.
>
> --
> Marc Dashevsky -- Put "usenet" in Subject if you want me to read e-mail.
> http://MarcDashevsky.com



Marc Dashevsky

2004-04-21, 4:33 am

Shahriar says in article <mZnhc.53736$ct2.7780@newssvr25.news.prodigy.com>:
> Well, I had posted some questions to "comp.lang.perl.moderated" a while
> back and did not get much response. I have been doing some work with PTk
> to clean up some my code that I have been using for quite while and give
> it it a UI to make the users happy. This is the first time I have seen
> this warning. This happened during test of a Tk module that I just finished.


Why don't you show us the code, particularly that surrounding the line
numbers given in the warnings.

> If this is not a good place, where do you think is a good place to post
> questions like this?


If you had included some perl/Tk code, I might have been less irritable!

--
Marc Dashevsky -- Put "usenet" in Subject if you want me to read e-mail.
http://MarcDashevsky.com
bxb7668

2004-04-21, 12:53 pm

For non-Tk Perl questions, you can try comp.lang.perl.misc

"Shahriar" <shahriar_mokhtarzad@pacbell.net> wrote in message
news:mZnhc.53736$ct2.7780@newssvr25.news.prodigy.com...
> Well, I had posted some questions to "comp.lang.perl.moderated" a

while back
> and did not get
> much response. I have been doing some work with PTk to clean up some

my code
> that I have been using
> for quite while and give it it a UI to make the users happy. This is

the
> first time I have seen this warning.
> This happened during test of a Tk module that I just finished.
>
> If this is not a good place, where do you think is a good place to

post
> questions like this?
>
> Thank you for your time and quick response
>
> Regards,
>
> -shahriar
>
>
> "Marc Dashevsky" <usenet@MarcDashevsky.com> wrote in message
> news:MPG.1aefc2288d24217b989911@netnews.comcast.net...
> <Kemhc.53703$Rf1.34832@newssvr25.news.prodigy.com>:
that[color=darkred]
posted[color=darkred]
warnings.[color=darkred]
e-mail.[color=darkred]
>
>



Ala Qumsieh

2004-04-21, 1:38 pm

"Shahriar" <shahriar_mokhtarzad@pacbell.net> wrote in message
news:mZnhc.53736$ct2.7780@newssvr25.news.prodigy.com...
> Well, I had posted some questions to "comp.lang.perl.moderated" a while

back
> and did not get much response.


As its name suggests, clpmod is moderated. This means that somebody has to
approve your question before being posted. They usually deal there with more
advanced issues, and, frankly, your question doesn't fit that description.
Go for comp.lang.perl.misc for your everyday Perl questions, but make sure
you try to figure out the answer yourself first, or else you might get some
nastry replies.

Other things you can do is check out perldiag for explanations of all of
Perl's warning messages. Further, you can google for your warning message. I
did that, and the very first hit gives the correct response.

--Ala


Dean Arnold

2004-04-21, 1:38 pm

"bxb7668" <bxb7668@somewhere.nocom> wrote in message
news:HwJ1zE.34u@news.boeing.com...
> For non-Tk Perl questions, you can try comp.lang.perl.misc
>


I'd suggest you Google long and hard before posting on c.l.p.misc;
if you think Marc D was cranky, try posting this question there!



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com