Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Missing Hash Keys When Hash Created in Sub

by GotToBTru (Prior)
on Feb 26, 2015 at 14:59 UTC ( [id://1117961]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Missing Hash Keys When Hash Created in Sub
in thread Missing Hash Keys When Hash Created in Sub

Going off topic here ... this reminds me of a problem on the final exam for my assembly language programming course in college. We were given a sample of code and asked questions about what it would do. Part of the program contained a JSR - jump to subroutine - instruction. But the code that was "jumped" to ended with an RTI - return from interrupt! I remember thinking .. you can't DO that! But of course, you can. And it had some useful result - removing two numbers from the stack instead of one (or vice versa) - a clever little hack that saved a step or two in the program. This bug showed a similar symptom - loss of data in returned values - but I doubt the cause is the same. But it gave me a chance to tell a story about learning the difference between what my mental model thought code did and what it actually did!

Dum Spiro Spero
  • Comment on Re^4: Missing Hash Keys When Hash Created in Sub

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found