Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: hashref return fails

by Anonymous Monk
on May 27, 2015 at 21:59 UTC ( [id://1128075]=note: print w/replies, xml ) Need Help??


in reply to hashref return fails

Given only your code and your description that the print statement works, that does seem quite strange. Have you stepped through the code in the debugger? Can you reduce your code down to an example that reproduces the problem that you can post here for others to run?

(By the way, DateTime::Format::Strptime can handle what your sub foo is doing.)

Replies are listed 'Best First'.
Re^2: hashref return fails
by FloydATC (Deacon) on May 28, 2015 at 13:27 UTC
    return unless $dt;

    Exactly what are you returning here unless $dt is true?

    -- FloydATC

    Time flies when you don't know what you're doing

      But look at where the print statement is which the OP claims works...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found