Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: remove leading figures

by LanX (Saint)
on Sep 18, 2025 at 20:23 UTC ( [id://11166274]=note: print w/replies, xml ) Need Help??


in reply to Re^3: remove lending figures
in thread remove lending figures

> tho with 1:00, isn't working

Because ":" is not "."

Use  @digits = split /[:.]/, $string

And pick what you need

For anything more complicated, better consider a dedicated DateTime module.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166274]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2026-03-08 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.