At 5:43 PM +1000 8/10/02, Shannon Murdoch wrote: >Hi all, > >My scripts, which are running perfectly well on a Win2000 webserver, do not >function correctly under MacOS X. > >The first thing I've been able to identify that is malfunctioning is the >standard file reading process I've always used: > >while(<FILE>){ > push (@array,$_); >} > >print $array[1]; ##prints the second line of file > >For some reason MacOS X reads the entire file in to $array[0] the first time >round, instead of putting one line per array element.
$/ = "\r"; at the beginning? The perl on MacOS X is making Unix assumptions, not Mac ones. -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.