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

Re: Remove digits from a string and add timestamp to the result

by johngg (Abbot)
on Jan 02, 2013 at 12:03 UTC ( #1011254=note: print w/replies, xml ) Need Help??

in reply to Remove digits from a string and add timestamp to the result

What with your earlier post and this one it is not clear what your overall aim is. Could it be that you want to move the timestamp from the front to the middle? Perhaps you could explain more clearly what you are trying to achieve from both nodes.

$ perl -Mstrict -Mwarnings -E ' > my $filename = q{20130101Customer100.imp}; > say $filename; > substr( $filename, 8, 0 ) = do { > my $ts = substr $filename, 0, 8, q{}; > qq{_${ts}_}; > }; > say $filename;' 20130101Customer100.imp Customer_20130101_100.imp $

I hope this wild guess is useful.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011254]
[oiskuu]: Discipulus, from the edge or from the top?
[Discipulus]: oiskuu from the top aka 0-0 coords
[LanX]: edge or node?
[oiskuu]: from each height difference, there's a fixed number of "moves right" - "moves left". So it's a number of combinations.
[Discipulus]: I already know how much distinct paths exists but to demonstrate the property i want to have them all
[oiskuu]: ie C(n, k); where n is height difference, k is position in the line
[Discipulus]: infact there are 70 distinct path to reach the tale wich holds 70
[Discipulus]: what i want is to compute them

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2018-03-19 11:03 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.