in reply to refs and hashes

You could do the following in your first conditional
if (/entity\s+(\w+)\s+is/i) { push @entities, {'name' => $1, 'fname' => $vhd_file}; }
I don't think you really want to do %1 setting.

Replies are listed 'Best First'.
Re: Re: refs and hashes
by diarmuid (Beadle) on Jul 29, 2002 at 14:07 UTC
    yea . I kinda knew that when I wrote it . doh ! Sorted it now anyway with a hohoh
    if (/entity\s+(\w+)\s+is/i) { $entities{$1}{'name'} = $1; $entities{$1}{'fname'} = $vhd_file; }
    ta