Sorting an Array of Arrays

2007-03-13 Thread Hardly Armchair
Hello List, I have a data structure containing a bunch of strings in different groups: $groups = [ [ 'SSPDQR', 'SSPSDR', 'STSSER', ], [ 'CSANLH', 'CVANRD', ], [...],

Matching long lists of patterns

2006-12-04 Thread Hardly Armchair
Hello List, I've written a simple guestbook program and, of course, I get spammed like crazy. One of the ways I am trying to avoid this is to keep a list of keywords that, if they show up, cause the post to be rejected by calling a function called end. Currently, I am implementing it with

Copying Hashes

2006-09-13 Thread Hardly Armchair
Sorry for the bonehead question, but I have a hash called %p_mod. I want to make a copy of it and edit the copy so that %p_mod stays the same. Currently, I'm creating %p_mod, writing %custom = %p_mod; to make a copy of %p_mod in %custom and then doing a bunch of stuff to %custom. However,

Re: Copying Hashes

2006-09-13 Thread Hardly Armchair
[EMAIL PROTECTED] wrote: There is something you're not telling us about the contents of these hashes. Sorry, %p_mod looks like this: %p_mod = { 'A' = { 'fingers' = { '4' = 'ABSFMQS', '5' = 'SMTFQNL',

Re: Sorting on HoHoH

2006-09-08 Thread Hardly Armchair
John W. Krahn wrote: Hardly Armchair wrote: Hello List, Hello, I have a data structure like so: %p_mod = { ^ You are using the wrong punctuation. That would produce a warning if you had warnings enabled. Sorry. I'm actually generating this data structure dynamically

Sorting on HoHoH

2006-09-07 Thread Hardly Armchair
Hello List, I have a data structure like so: %p_mod = { 'A' = { 'fingers' = { '4' = 'ABSFMQS', '5' = 'SMTFQNL', }, 'name'= '8-H34' },

Multiple .cgi scripts vs. one large script

2006-06-14 Thread Hardly Armchair
Hello All, I was wondering if it is more efficient (in terms of speed and processor load) to have two different scripts of approximately the same size called to handle two different functions, or to have one large script handle all cgi functions using subroutines. Or perhaps these situations

Re: RegEx (m//) Flinstones

2006-04-30 Thread Hardly Armchair
On Tue, 2006-25-04 at 17:36 +0400, Monomachus wrote: This matches only the first occurrence. You will need a loop to match them all. Just wanted to say that this piece of info just totally saved my life. Thanks! Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [Win32] Basic I/O Question

2006-01-16 Thread Hardly Armchair
--- Timothy Johnson [EMAIL PROTECTED] wrote: The diamond operator works fine without escaping your backslashes, but I recommend putting quotes around your arguments. The following works just fine for me: c:\ while.pl c:\documents and settings\username\desktop\file.txt If you

[Win32] Basic I/O Question

2006-01-15 Thread Hardly Armchair
Hello List, I am running Perl for Win32 and have been executing my programs through the 'cmd.exe' shell. I am confused about how to input paths to files in a command-line context so that perl will understand. Using the diamond operator () in my programs allows me to type my program at the