Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things

Comment on

I am using a regex to extract some numbers from a string, to build an array of numbers. However, I don't seem to be able to use < and > to compare the numbers.

The conversion from strings to numbers is automagic, though you could write:   $VAR1 = ['M4568-51', 'M', 0 + '4568', 0 + '51' ];
to force the conversion.

Can you post a fragment of code that demonstrates the problem?

In reply to Re: extracting numbers with a regex by dws
in thread extracting numbers with a regex by coolmichael

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (4)
    As of 2014-03-16 18:59 GMT
    Find Nodes?
      Voting Booth?

      Have you used a cryptocurrency?

      Results (331 votes), past polls