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

Re: how to chose the word from this sentence?

Expand Messages
  • Lee Marlin
    Hi,   There s an extra space in the code that caused the earlier example to fail. Old Version: $w=~/.+(-.+) ).+/;   This produces NO OUTPUT !   Instead,
    Message 1 of 8 , Apr 10, 2012
      Hi,
       
      There's an extra space in the code that caused the earlier example to fail.
      Old Version: $w=~/.+(-.+) \).+/;
       
      This produces NO OUTPUT !
       
      Instead, change it to:
       
      New Version: $w=~/.+(-.+)\).+/;
       
      Making this change causes the ouput to be: -82.9127
       
      Lee Marlin

      [Non-text portions of this message have been removed]
    • merlyn@stonehenge.com
      ************************************************** * * THIS IS NOT THE OFFICIAL perl BEGINNERS GROUP. * * The official one is at beginners@perl.org, with
      Message 2 of 8 , Apr 10, 2012
        **************************************************
        *
        * THIS IS NOT THE OFFICIAL perl BEGINNERS GROUP.
        *
        * The official one is at beginners@..., with instructions on how to
        * join at http://lists.perl.org/list/beginners.html.
        *
        * You'll get far better response there, not to say you won't get *any* here.
        *
        **************************************************

        --
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
        <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
        Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
        See http://methodsandmessages.posterous.com/ for Smalltalk discussion
      • Lim
        ... Thanks for the suggestion website. Regards, LIM
        Message 3 of 8 , Apr 11, 2012
          --- In perl-beginner@yahoogroups.com, merlyn@... wrote:
          >
          >
          > **************************************************
          > *
          > * THIS IS NOT THE OFFICIAL perl BEGINNERS GROUP.
          > *
          > * The official one is at beginners@..., with instructions on how to
          > * join at http://lists.perl.org/list/beginners.html.
          > *
          > * You'll get far better response there, not to say you won't get *any* here.
          > *
          > **************************************************
          >
          > --
          > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
          > <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
          > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
          > See http://methodsandmessages.posterous.com/ for Smalltalk discussion
          >


          Thanks for the suggestion website.

          Regards,
          LIM
        Your message has been successfully submitted and would be delivered to recipients shortly.