Skip to content

Problem with mixing arguments, which is hash bad not contain dash as first character. #270

Description

@kocoureasy

Hi,
when I have defined hash argument for CGI->hidden() function which contain keys without dash, so in new perl is sometimes checked as array argument and not as hash.
For example this:

my $p = {
'-default' => [''],
'class' => 'class_set',
'-name' => 'name_set',
'id' => 'id_set'
};

In new perl isn't hash sorted, so sometimes happens that on first position is key which doesn't have dash character.
My proposal patch

fix_hash_argument.patch

Regards
Igor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions