G'day all
I've come accross a strange problem in my perl script.. Im trying to write a program that runs on both win32 systems and linux systems, but iv hit a little snag.. the chomp() function seems to behave very weirdly on my linux box, but when i run the same script on my win32 box it runs perfectly..
i.e. the chomp() function does work in that it strips the carriage return line feed off the end of the $_ variable, but then when i go to use it as a reference to a hash element
e.g. if(exists($hash{"$_"}))}
it doesn't return true, when $_ == the element in $hash.. but this works fine on my win32 box, and everything behaves the way it should...
Im really stumped on this one, and if anyone could shed some light on the matter i would be really gratefull
thanks in advance /-------------------------------------
| I always have been, and
| always will be, a newbie
\-------------------------------------
I've come accross a strange problem in my perl script.. Im trying to write a program that runs on both win32 systems and linux systems, but iv hit a little snag.. the chomp() function seems to behave very weirdly on my linux box, but when i run the same script on my win32 box it runs perfectly..
i.e. the chomp() function does work in that it strips the carriage return line feed off the end of the $_ variable, but then when i go to use it as a reference to a hash element
e.g. if(exists($hash{"$_"}))}
it doesn't return true, when $_ == the element in $hash.. but this works fine on my win32 box, and everything behaves the way it should...
Im really stumped on this one, and if anyone could shed some light on the matter i would be really gratefull
thanks in advance /-------------------------------------
| I always have been, and
| always will be, a newbie
\-------------------------------------