Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How would you rewrite this?

by merlyn (Sage)
on Aug 30, 2009 at 22:10 UTC ( #792224=note: print w/replies, xml ) Need Help??


in reply to How would you rewrite this?

my $chosen_day = join " ", split /\s+/, "April 1, 2009";
or
(my $chosen_day = "April 1, 2009") =~ s/\s+/ /;

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://792224]
help
Chatterbox?
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-04-20 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?