Sounds weird. You weren't setting up the variable with my and then trying to read it out side the current block were you?
Speaking of programming problems, I had a total case of the horrors trying to explain to a user why Tokyo thought that the compiler was reording his code in a totally brain dead way. The PSR reply was like a Taoist riddle or a one of the Escher illusions - thinking about it brought out something that was actually there all along, but as soon as my attention wandered, it was gone again...
no subject
Date: 2005-05-16 08:36 pm (UTC)I had several lines like :
123 456 Hello
34 27 Goodbye
...
I was looping over each line (so in $_) and was trying to split into three variables, so :
my ($num1, $num2, $string) = split(/[ ]+/);
and what was coming out ?
.. everything was in $num1 ... I was pulling my hair out ..
I fixed (after a while) by removing the my( ) bollocks...
I still have no idea what was going on ... so "my" can go shove.
A bad day.
no subject
Date: 2005-05-16 09:51 pm (UTC)Speaking of programming problems, I had a total case of the horrors trying to explain to a user why Tokyo thought that the compiler was reording his code in a totally brain dead way. The PSR reply was like a Taoist riddle or a one of the Escher illusions - thinking about it brought out something that was actually there all along, but as soon as my attention wandered, it was gone again...