http://www.perlmonks.org?node_id=954750


in reply to Re: On creating hash whose keys aren't case-sensitive
in thread On creating hash whose keys aren't case-sensitive

This sub returns undef (indicating an error) if you give it a string with more than one internal dash or underscore.

Like the Access-Control-Allow-Origin header?

  • Comment on Re^2: On creating hash whose keys aren't case-sensitive

Replies are listed 'Best First'.
Re^3: On creating hash whose keys aren't case-sensitive
by CountZero (Bishop) on Feb 18, 2012 at 22:00 UTC
    Absolutely!

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics