Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: A quick date swap from a string

by ggoebel (Sexton)
on Jul 10, 2009 at 18:21 UTC ( #778994=note: print w/ replies, xml ) Need Help??

in reply to A quick date swap from a string

You declare "my $date" twice:

  my $date= shift;
  my $date;
The second one creates a new lexical with an undefined value. So the subsequent substitution and return are working with undef;

Comment on Re: A quick date swap from a string

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2015-11-27 12:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (727 votes), past polls