Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
No such thing as a small change
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-04-18 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls