Re: dangerous perl (Re: is this reasonably save?)

2017-05-25 Thread John SJ Anderson
Folks, this has passed the event horizon of what’s appropriate for the Beginners list a good while back. If y’all wanna continue this conversation, please kindly do so outside the bounds of this mailing list. thanks, john, the resident list mom. > On 25May2017, at 10:52, Uri Guttman wrote:

Re: project euler #8

2017-05-25 Thread Shlomi Fish
Hi lee, I decided to try to give you another chance to be educated, despite Uri's conclusion in the other thread. Hopefully you won't let me down. On Thu, 25 May 2017 16:48:13 +0100 lee wrote: > Shlomi Fish writes: > > > [...] > >> >> while ( my $numbline = ) { > >> >> chomp $numbline;

Re: Fwd: Re: dangerous perl (Re: is this reasonably save?)

2017-05-25 Thread Kent Fredric
On 26 May 2017 at 05:33, lee wrote: > Perl doesn't have data structures, so variables in perl are not data > structures. That is unfortunate. So when I write: my $var = { memory => { total => 1024, free => 100, buffers => 10, }, }; What do I ha

Re: Fwd: Re: dangerous perl (Re: is this reasonably save?)

2017-05-25 Thread Uri Guttman
On 05/25/2017 01:33 PM, lee wrote: Uri Guttman writes: On 05/24/2017 08:20 PM, lee wrote: Uri Guttman writes: you can get an array of hashes, where each hash is one row. learning dereferencing will do you much more good than using eval EXPR. references are key to deeper data structures

Re: project euler #8

2017-05-25 Thread lee
Shlomi Fish writes: > [...] >> >> while ( my $numbline = ) { >> >> chomp $numbline; >> >> my @numbline = split //, $numbline; >> > >> > You're processing the input number line-by-line, but it's one whole number >> > and the products may span across more than one line. You need to slurp

Re: Fwd: Re: dangerous perl (Re: is this reasonably save?)

2017-05-25 Thread lee
Uri Guttman writes: > this private IMO> > > > On 05/24/2017 08:20 PM, lee wrote: >> Uri Guttman writes: >> >> >> you can get an array of hashes, where each hash is one row. >> >> learning dereferencing will do you much more good than using eval >> EXPR. references are key to deeper data structu

Re: project euler #8

2017-05-25 Thread Shlomi Fish
Hi lee! On Thu, 25 May 2017 02:24:05 +0100 lee wrote: > Shlomi Fish writes: > > > Hi all! > > > > Resending because the original message does not appear to have arrived at > > the list. > > > > = > > > > Hi Derrick, > > > > On Tue, 16 May 2017 14:01:34 +0800 > > derr...@thecopes.me wrote: