Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 perusing the Monastery: (4)
As of 2014-09-21 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls