Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Sort on Number Embedded in String

by ww (Archbishop)
on Mar 23, 2005 at 15:51 UTC ( #441803=note: print w/replies, xml ) Need Help??

in reply to Sort on Number Embedded in String

Possible typo or cut'n'paste error in the snippet (or, some transformation not mentioned), but as shown, the initial match,
$_ =~ /fwlogsum\.(\d+)\w+/;
does not match on anything in the data.

$_ =~ /fwlog\.(\d+)\w+/;
instead... and then note that (unless you can guarantee that the data will never contain more than one month) this node is not helpful in the sense of providing a safe approach for production use.

There are MANY good suggestions re parsing dates above.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://441803]
[marto]: ha!
[hippo]: Yay for encryption! :-/
[marto]: a grain of sand or dust in the keyboard, replace the motherboard. No we can't transfer your data for you

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-07-23 09:57 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (461 votes). Check out past polls.