Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 meditating upon the Monastery: (6)
As of 2015-07-04 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls