How to find out if a string is in uppercase only

leifwessman_at_hotmail.com
Date: 08/28/04

  • Next message: Tassilo v. Parseval: "Re: hv_iterinit has side effects - who cares about PL theory"
    Date: 27 Aug 2004 23:58:33 -0700
    
    

    Hi!

    How do I find out if a string is uppercase only? I've searched cpan for
    a suitable module, but found nothing.

    This is what I'm looking for:

    is_uppercase("UPPERCASE ÅÄÖ") # TRUE
    is_uppercase("UPPERCaSE ÅÄÖ") # FALSE

    Thanks for any input on how to create such a method.
    Leif

    Note: ÅÄÖ is swedish characters.


  • Next message: Tassilo v. Parseval: "Re: hv_iterinit has side effects - who cares about PL theory"