Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Converting to upper case

Expand Messages
  • Spectroman
    hello, maybe ucfirst // lcfirst could help in some cases too. as is in perlfunc - uc / lc / ucfirst / lcfirst ucfirst EXPR ucfirst Returns the value of EXPR
    Message 1 of 8 , Jan 5, 2005
    • 0 Attachment
      hello,

      maybe ucfirst // lcfirst could help in some cases too.

      as is in perlfunc -> uc / lc / ucfirst / lcfirst

      ucfirst EXPR
      ucfirst Returns the value of EXPR with the first character
      in uppercase (titlecase in Unicode). This is the
      internal function implementing the "\u" escape in
      double-quoted strings. Respects current LC_CTYPE
      locale if "use locale" in force. See perllocale
      and perlunicode for more details about locale and
      Unicode support.

      If EXPR is omitted, uses $_.

      lcfirst EXPR
      lcfirst Returns the value of EXPR with the first character
      lowercased. This is the internal function imple-
      menting the "\l" escape in double-quoted strings.
      Respects current LC_CTYPE locale if "use locale"
      in force. See perllocale and perlunicode for more
      details about locale and Unicode support.

      If EXPR is omitted, uses $_.


      uc EXPR
      uc Returns an uppercased version of EXPR. This is
      the internal function implementing the "\U" escape
      in double-quoted strings. Respects current
      LC_CTYPE locale if "use locale" in force. See
      perllocale and perlunicode for more details about
      locale and Unicode support. It does not attempt
      to do titlecase mapping on initial letters. See
      "ucfirst" for that.

      If EXPR is omitted, uses $_.

      lc EXPR
      lc Returns a lowercased version of EXPR. This is the
      internal function implementing the "\L" escape in
      double-quoted strings. Respects current LC_CTYPE
      locale if "use locale" in force. See perllocale
      and perlunicode for more details about locale and
      Unicode support.

      If EXPR is omitted, uses $_.

      cheers,
      c-ya

      --- Raghu Ram Murthy <me_rams@...> wrote:

      >
      > This is worked. Thanks a lot.
      >
      > -Raghuram
      >
      > --- Franki <franki@...> wrote:
      >
      > > Raghu Ram Murthy wrote:
      > > > Hello,
      > > >
      > > > Is there any function or package to convert
      > > strings to
      > > > upper case and lower case?
      > > >
      > > > Thanks a lot
      > > > -Raghuram
      > > >
      > >
      > >
      > > Try something like this:
      > >
      > > my $string = 'some InaNe Mix of LoWer and UPPER
      > > caSE';
      > >
      > > my $lower_case = lc($string);
      > > my $upper_case = uc($string);
      > >
      > > That should do the trick for you.
      > >
      > > rgds
      > >
      > > Franki
      > >
      > >
      >
      >
      > =====
      > ----------------------------------------------
      > P.Raghu Ram Murthy, M-tech (Computer Science),
      > Member, Information Technology,
      > D E Shaw India Software Private Limited,
      > 6-3-879 & 879/B
      > Begumpet, Hyderabad 500 016
      > Andhra Pradesh
      > India
      >
      > Mobile: (+91) 98852 17928
      > ----------------------------------------------
      >
      > If it doesn't work, you're not hitting it with a big enough hammer
      >
      >
      >
      > __________________________________
      > Do you Yahoo!?
      > All your favorites on one personal page � Try My Yahoo!
      > http://my.yahoo.com
      >
      >
      > Unsubscribing info is here:
      > http://help.yahoo.com/help/us/groups/groups-32.html
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >


      =====
      Julio Cesar Hegedus Version 29-P-LH
      Spectro is Novell Netware & Linux Specialist
      +=================================================+
      Web Sites
      http://www.geocities.com/spectroman (full time)
      http://spectronet.homelinux.net:88

      Contact Info
      ICQ: 3614823
      Fone: +55 11 5083 7584
      Mobi: +55 11 9662 4138
      Also: jchegedus@... at Terra ISP




      __________________________________
      Do you Yahoo!?
      All your favorites on one personal page � Try My Yahoo!
      http://my.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.