Re: Strings and Operators

From: dna (magmalianathotmaildotcom)
Date: 02/20/04

  • Next message: dna: "Re: Strings and Operators"
    Date: Fri, 20 Feb 2004 09:23:15 -0500
    
    

    this problem relates to operator/list precedence with and without
    parenthesis.

    for a good reference please read through 'perlop' in the perldocs. you will
    be enlightened!

    good luck

    "JamesW" <gingaloon@hotmail.com> wrote in message
    news:27d2bd1f.0402200049.d224c35@posting.google.com...
    > Sorry if this occurs twice, my nicely typed one just vanished. Anyway in
    brief:
    >
    > I want to store a range in a string, e.g. '2-5'.
    >
    > I tried $range = $numOne.'-'.$numTwo+1;
    >
    > And $range stored the sum of $numOne+1!
    > I got it to work with,
    >
    > $range = $numOne.'-'.($numTwo+1);
    >
    > I understand why this works not not why my initial instinct didn't.
    > Could someone please enlighten me?
    >
    > Thanks
    > James


  • Next message: dna: "Re: Strings and Operators"

    Relevant Pages

    • Re: Uncomputable Numbers
      ... lgallindo wrote: ... but got no luck. ... Anyone knows a reference? ... (I have read Turing paper On ...
      (sci.math)
    • Re: [RFC][PATCH 2/2] Twofish cipher x86_64-asm optimized
      ... comparing the C reference version with yours. ... We have had bad luck ... with assembler functions not quite implementing the same cipher ...
      (Linux-Kernel)
    • Re: Johnny Hart - RIP
      ... I'm not having much luck in Googlespace, ... reference to Canaanite temples on the spot where the Israelites ...
      (rec.arts.comics.strips)
    • Re: T Burrow on the Sanskrit of the Vedas and later Sanskrit
      ... with little luck. ... I should have given the reference the first time. ... | Hawaiian has no affricates, no fricative besides /h/, and no other ... the breaking of the flow of sound by the taking of a breath except at ...
      (sci.lang)
    • Monopolies & Moorings was Re: Drinking and boating
      ... Tim Leech wrote: ... to confirm what their terms of reference were. ... Not a lot of luck ... there, it's now the 'Competition Commission', and if you can get any ...
      (uk.rec.waterways)