Re: Tip: hash indexing

2017-10-03 Thread Andrew Kirkpatrick
Thanks, your script enticed me to explore different ways of constructing a hash table. I dimly recall something about map having access to an index variable, but couldn't find it documented so maybe I was dreaming. The process of figuring out these approaches highlighted that so much perl6 document

Re: variable size limit?

2017-10-03 Thread Parrot Raiser
Donald Knuth was proud of getting an entire compiler into 1023 bytes. It wasn't a game of golf; the machine only had 1024 available. https://cacm.acm.org/news/175194-twenty-questions-for-donald-knuth/fulltext On 10/2/17, ToddAndMargo wrote: >>> On Mon, Oct 2, 2017 at 6:22 PM, ToddAndMargo >>

Re: Tip: hash indexing

2017-10-03 Thread Bennett Todd
I'd like to note that Hash tables don't preserve the order they're created, and that this isn't a perl6 thing, this is intrinsic to the definition of hash tables. On October 3, 2017 9:06:47 AM EDT, Andrew Kirkpatrick wrote: >Thanks, your script enticed me to explore different ways of >construc

Re: Tip: hash indexing

2017-10-03 Thread ToddAndMargo
Sweet!I added a reverse print to the pile! #!/usr/bin/env perl6 #`{ Hashes do not print in the order they are created. it is a Perl 6 thing. To overcome this, create an index of the hash. } my @SmtpIndex = qw[ DebugTrace smtp port username password from to Subject Text FileName ];

Re: Tip: hash indexing

2017-10-03 Thread James Ellis Osborne III
Canadian Handicrafts Guild On Oct 3, 2017 11:22 AM, "ToddAndMargo" wrote: > Sweet!I added a reverse print to the pile! > > > #!/usr/bin/env perl6 > > #`{ > Hashes do not print in the order they are created. it is a Perl 6 thing. > To overcome this, create an index of the hash. > } > >

Re: Tip: hash indexing

2017-10-03 Thread Andy Bach
Though this seems to be heading the wrong way but - TIMTOWTDI my @SmtpIndex = qw[ DebugTrace smtp port username password from to Subject Text FileName ]; my @SmtpValues = ["1", "smtps://smtp.zoho.com", "465", 'la...@zoho.com', "NaYukYukYuk", 'la...@zoho.com', @['cu...@zoho.com','m...@zoho.com']

Re: Tip: hash indexing

2017-10-03 Thread ToddAndMargo
On 10/03/2017 11:56 AM, Andy Bach wrote: Though this seems to be heading the wrong way but - TIMTOWTDI my @SmtpIndex =    qw[ DebugTrace smtp port username password from to Subject Text FileName ]; my @SmtpValues = ["1", "smtps://smtp.zoho.com ", "465", 'la...@zoho.com

Email::MIME multiple attachments question

2017-10-03 Thread ToddAndMargo
Hi All, Can anyone point me to an example of how to create multiple attachments with Email::MIME (I know how to do one). Many thanks, -T

Re: Tip: hash indexing

2017-10-03 Thread Richard Hainsworth
The suggested solution to this thread seems odd to me. It confuses a storage structure with information about the elements, and doesn't use the power of perl6. An associative array is useful because non-integer indexes are possible and hashing makes storage efficient. This makes referencing da