Dermot wrote:
2009/7/28 John W. Krahn :
Dermot wrote:
2009/7/28 John W. Krahn :
Thanx for gettig back to me.
Which error? Copy and paste the error message you are receiving.
Opps sorry. Here you are. Every time I start the httpd I get
Processing config file: /etc/apache-modperl/conf.d/de
Sorry for overr writng
But this pop into my head while walking.
-Original Message-
From: "John W. Krahn"
Date: Tue, 28 Jul 2009 13:07:38
To: Perl Beginners
Subject: Re: Subroutine foo redefined a bar
Dermot wrote:
> 2009/7/28 John W. Krahn :
>
> Thanx for gettig back to me.
>
>> Whic
On Tue, Jul 28, 2009 at 17:05, Dermot wrote:
snip
>> my $bid = shift;
>> my $items = ref $_[0] ? $_[0] : \...@_;
>>
>
> Perhaps you can expand, if $_[0] was a scalar wouldn't that get
> assigned to $items?
snip
Normal scalars (i.e. strings and numbers) are not references,
therefore the resul
2009/7/28 John W. Krahn :
> Dermot wrote:
>>
>> 2009/7/28 John W. Krahn :
>>
>> Thanx for gettig back to me.
>>
>>> Which error? Copy and paste the error message you are receiving.
>>
>> Opps sorry. Here you are. Every time I start the httpd I get
>>
>
> That message means that you have defined tw
On Tue, Jul 28, 2009 at 16:12, Chas. Owens wrote:
snip
> I actually find the new style annoying. The floating toolbar obscures
> part of the doc, especially when you use a target like
> #Temporary-Values-via-local().
snip
Note, you can fix this behavior by going to
http://perldoc.perl.org/prefere
On Tue, Jul 28, 2009 at 13:11, Bryan R
Harris wrote:
snip
> Wow, I wish I'd read this email before sending that last one. The
> perldoc.perl.org site has gotten a tremendous upgrade, it's beautiful now.
> It also explains the whole local($_) thing, though it doesn't really explain
> "why", just "t
Dermot wrote:
2009/7/28 John W. Krahn :
Thanx for gettig back to me.
Which error? Copy and paste the error message you are receiving.
Opps sorry. Here you are. Every time I start the httpd I get
Processing config file: /etc/apache-modperl/conf.d/dev_vhost.conf
Subroutine addItemsToBasket
On Tue, Jul 28, 2009 at 15:50, John W. Krahn wrote:
snip
> local() only works on variables that are in the symbol table, in other words
> package variables. All variables that are a single puntuation character are
> package variables and some are global and effect all packages. local() does
> not
Bryan R Harris wrote:
Bryan Harris wrote:
John W. Krahn wrote:
Bryan Harris wrote:
... but by modifying $_ I was clobbering $_ elsewhere in the larger
program!
Yes because $_ is a special global variable. This effect is called
"action at a distance" which is why it is better to use named lex
2009/7/28 John W. Krahn :
Thanx for gettig back to me.
> Which error? Copy and paste the error message you are receiving.
Opps sorry. Here you are. Every time I start the httpd I get
Processing config file: /etc/apache-modperl/conf.d/dev_vhost.conf
Subroutine addItemsToBasket redefined at
/ex
On Tuesday 28 July 2009 20:06:34 Bryan R Harris wrote:
> > Bryan Harris wrote:
> >> John W. Krahn wrote:
> >>> Bryan Harris wrote:
> ... but by modifying $_ I was clobbering $_ elsewhere in the larger
> program!
> >>>
> >>> Yes because $_ is a special global variable. This effect is call
Bryan R Harris wrote:
Curiously, perlvar seems to recommend localizing $_ with "local", but I
thought I read somewhere to never use local and only use my. I still don't
understand how those two are different.
'my' variables are lexically scoped, that is, you can only use them in
the block or
> On Mon, Jul 27, 2009 at 09:49, Bryan Harris wrote:
> snip
>>> Yes because $_ is a special global variable. This effect is called
>>> "action at a distance" which is why it is better to use named lexically
>>> scoped variables instead of $_.
>>
>> I have the Perl Bookshelf on CD (and perldoc,
> Bryan Harris wrote:
>>
>> John W. Krahn wrote:
>>>
>>> Bryan Harris wrote:
... but by modifying $_ I was clobbering $_ elsewhere in the larger
program!
>>> Yes because $_ is a special global variable. This effect is called
>>> "action at a distance" which is why it is better t
On Tue, Jul 28, 2009 at 11:05, John W. Krahn wrote:
snip
> Perl 5.10 is still at the .0 stage (5.10.0) and a lot of people like to wait
> until software has progressed past the .0 phase.
snip
The good news is that 5.10.1RC1 looks like it will be released
shortly, so 5.10.1 will be here soon.
--
John W. Krahn wrote:
Perl 5.10 is still at the .0 stage (5.10.0) and a lot of people like to
wait until software has progressed past the .0 phase.
Actually it has more to do with hate than like, as in, "I hate things
that create more work for me."
It ranks right up there beside, "I have
Bryan Harris wrote:
John W. Krahn wrote:
Bryan Harris wrote:
... but by modifying $_ I was clobbering $_ elsewhere in the larger program!
Yes because $_ is a special global variable. This effect is called
"action at a distance" which is why it is better to use named lexically
scoped variab
Dermot wrote:
Hi,
Hello,
I noticed this error appearing when I stop/started my httpd server
recently (yes this is modperl 1 code).
Which error? Copy and paste the error message you are receiving.
This offending code reads a like this:
package Some::Pack;
..
..
sub addItemsToBasket {
On Mon, Jul 27, 2009 at 09:49, Bryan Harris wrote:
snip
>> Yes because $_ is a special global variable. This effect is called
>> "action at a distance" which is why it is better to use named lexically
>> scoped variables instead of $_.
>
> I have the Perl Bookshelf on CD (and perldoc, obviously) -
Hi,
I noticed this error appearing when I stop/started my httpd server
recently (yes this is modperl 1 code).
This offending code reads a like this:
package Some::Pack;
..
..
sub addItemsToBasket {
my ($bid, $items) = @_;
foreach my $i (@items) {
addItemToBasket($bid, $i
Whenever I have to reboot ( Windows XP Sp2 ), which I try to keep to a
minimum, it resets the power options. I have no control of that, but I can also
go in a set to what I want it to be. Unfortunately I get side tracked at times
after a re-boot and next thing I am at home and when I try
currently I'm using CGI,CGI::Cookie,DBI,Template::Toolkit,Linux,Apache and
SQLite for a small data scratching project.
being very happy with them.
--- dpchr...@holgerdanske.com wrote:
Also, what about the various WWW tools -- e.g. CGI.pm, CGI::Application,
HTML::Template, Template::Toolkit, M
>> For example, my temptation was to do this:
>>
>> **
>> sub isDate {
>>
>> $_ = shift;
>> if (m!\d{2}/\d{2}/\d{2}!) { return 1; }
>> else { return 0; }
>>
>>
>> }
>
> Why is this in a subroutine at all? If you are using it like:
[stuff cut
On Tuesday 28 July 2009 03:59:36 Dan wrote:
> On Mon, 27 Jul 2009 16:00:13 -0700, David Christensen
>
> wrote:
> > Perl Beginners:
> >
> > I am thinking about a Perl web/ database application for political
> > organizing and campaigns
>
>
>
> > I plan to start with the database portion of the app
After the last news item, a lot of work was invested in
http://perl-begin.org/ , the Perl Beginners' Site. making
it even better than it used to be. Here's a summary of the changes:
* A testimonials page ( http://perl-begin.org/learn/who-is-using/ )
was added, with some honest-to-God testimonial
2009/7/28 David Christensen :
> Perl Beginners:
>
> I am thinking about a Perl web/ database application for political
> organizing and campaigns -- generating precinct walk lists, generating
> phone banking lists, tracking contacts, etc.. I am using Debian
> GNU/Linux 5 with Apache 2.2, mod_perl
On Tuesday 28 July 2009 02:00:13 David Christensen wrote:
> Perl Beginners:
>
> I am thinking about a Perl web/ database application for political
> organizing and campaigns -- generating precinct walk lists, generating
> phone banking lists, tracking contacts, etc.. I am using Debian
> GNU/Linux
27 matches
Mail list logo