Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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;

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 drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2016-06-27 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.