On 7/2/09 Thu Jul 2, 2009 12:12 PM, "daem0n...@yahoo.com"
scribbled:
>
> Hi,
>
> If I have a loop that for each run creates
>
> while (){
> my $value =~ /^\d/;
> $myhash{$mykey}->{'subkey'} = $value;
> }
>
>
> Normally, if I only want to sort $myhash through it's values, I would do
> s
Hi,
If I have a loop that for each run creates
while (){
my $value =~ /^\d/;
$myhash{$mykey}->{'subkey'} = $value;
}
Normally, if I only want to sort $myhash through it's values, I would do
something like:
foreach (sort { $a <=> $b } keys %myhash){
print "$myhash{$_}\n";
}
what if i
On Sep 6, Tobin, Elliot said:
>sub setFields
> {
>my ($inBlock, @fieldList) = @_;
>
>foreach my $i (@fieldList)
>{
> push($inBlock->{'fields'}, $i);
You'd need to say
push @{ $inBlock->{fields} }, $i;
>}
>
>return $inBlock;
> }
But given your current function, it's
On Friday, September 6, 2002, at 08:54 AM, Tobin, Elliot wrote:
> I have the following as my data inside a package:
>
> my $dataBlock = { isInsertable=> $isInsertable,
> fields => undef,
fields
see inline comments:
> -Original Message-
> From: Tobin, Elliot [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: Arrays inside
>
>
> I have the following as my data inside a package:
>
> -Original Message-
> From: Tobin, Elliot [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: Arrays inside
>
>
> I have the following as my data inside a package:
>
I have the following as my data inside a package:
my $dataBlock = { isInsertable=> $isInsertable,
fields => undef,
requiredFields => undef,
selectionFields =