Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Take out the date using Regex.

by CountZero (Bishop)
on Jan 05, 2013 at 13:16 UTC ( #1011786=note: print w/replies, xml ) Need Help??


in reply to Take out the date using Regex.

Or using split:
use Modern::Perl; my $string = 'Sat, 05 Jan 2013 04:00:15 GMT'; my $date = join ' ', (split /\s/, $string)[1 .. 3]; say $date;

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011786]
help
Chatterbox?
[holli]: how do you update a different window without javascript?
[holli]: ah, chatterbox right
[marto]: it's a normal HTML form, with some hidden input fields
[holli]: forgot that thing exists for a moment.
LanX welcome to the twilight zone ...
[Eily]: LanX well since the onion is your eye you should see it everywhere
[marto]: sounds eye watering
[LanX]: oh your talking about my pic?
[Eily]: marto #SoSad
[holli]: duh

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-12-14 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (398 votes). Check out past polls.

    Notices?