tough sort question

2001-04-25 Thread Steven . Spears
ith hashes of arrays, hashes of hashes, and can't work out the sorting routine. I'm quite unsure of the 'best' or most 'efficient' way to do this. I'm looking for any help whatsoever, Thanks! Steven Spears (905)-405-0955 [EMAIL PROTECTED]

Re: missing something obvious

2001-04-25 Thread Steven . Spears
Gary, split uses the first argument as a regex, and the period is a metacharacter, and needs to be backslashed. Take a look at this snippet, which works: $test = 'L.svc.I.039558'; ($dealer, $system) = split /\./,$test; print "$dealer\n$system\n&q

Re: Repeated Words

2001-04-25 Thread Steven . Spears
I believe if you add the (g)lobal modifier and optionally(i), Paul's line of code may work: $line =~ /(\b\w+\b).*\1/ogi; This is also addressed a little differently in Programming Perl, page 149 Steven Spears (905)-405-0955 [EMAIL PROT