Re: threads in perl

2004-01-20 Thread Roberto Álamos Moreno
CPAN http://search.cpan.org El Tue January 20 2004 03:44 Igor Ryaboy dijo : Hi, Thanks for your tips, Where can I get those modules? Igor -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: RE: threads

Re: Filehandles stored in hashes

2004-01-20 Thread Roberto Álamos Moreno
Hi, Robin. 1st Situation. I think the problem with my $incoming = $self-{filehandle}; it's that Perl thinks that the expresion inside the is $self- and then expects a semicolon but that semicolon isn't there. 2nd Situation. Do you like this option ? sub mySub { $foo = shift;

Re: Printing Array of Hashes

2003-12-23 Thread Roberto Álamos Moreno
Hi William, This is very simple. The key function will do the work as in this example: my %hash; my @keys; my @values; $hash{key1} = value1; $hash{key2} = value2; foreach my $key (keys %hash) { push(@keys,$key); push(@values,$hash{$key}); } After the execution of this script