Re: Probably need help with a hash to do this

2004-11-12 Thread Jonathan D Johnston
ted '02' on the second line. Using a simple counting algorithm, '02' will show up as a "false positive". Peter Eisengrein's hash filter (in a previous email) won't be tricked by duplicates. Mark Thomas suggested List::Compare::get_intersection(). I would hope

Re: Checkboxes

2004-01-27 Thread Jonathan D Johnston
examples my %hash = (1 => 'Subscriber is Suspended', 2 => 'Receives List Messages', ...); foreach (sort {$a <=> $b} keys %hash) { printf "%4d %s\n", $_, $hash{$_} if $flags & $_; } This prints: 2 receives list messages

Re: Strange errors?

2003-11-16 Thread Jonathan D Johnston
sed explicitly as subs: &Win32::Shell:: or Win32::Shell::() Naturally, use either method for any constant defined in both modules. HTH, Jonathan D Johnston ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Reverse of Chomp...

2003-06-18 Thread Jonathan D Johnston
TOR) { local $" = "\n"; print "@array\n"; } or, probably better, $, (OUTPUT_FIELD_SEPARATOR) { local $, = "\n"; print @array,''; } will do the trick quite nicely. For the difference between '$\', '$"', & '

Re: [OLE] Perl & Outlook

2000-12-22 Thread Jonathan D Johnston
st we determine the object chain: Application->NameSpace ->Folders(Folder)->Items(Item)->Attachments(Attachment). * Second, we determine the appropriate methods/properties to access the object at the end of the chain. * Third, once we have the