Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: split function

by rowdog (Curate)
on Jan 27, 2011 at 03:23 UTC ( #884471=note: print w/replies, xml ) Need Help??

in reply to split function

$ date|awk '{print $4}'|awk -F: '{print $1$2}'|cut -c3-4 19
$ perl -e 'print( (localtime)[1], "\n" )' 19

I don't really understand awk so I might be mistaken. If you're looking for something other than minutes, consult localtime.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://884471]
[Corion]: Heh. The JSON link for Strawberry releases gives me the idea that I should provide an RSS proxy so people can get notified when a new release is there...
[Corion]: In other RSS news, I've updated my photo stream with images from Lanzarote
[choroba]: Corion Nice

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-02-27 08:25 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (377 votes). Check out past polls.