/tracker/tech/linux/mandriva
Fix reference return value of dir method in Net::FTP [TODO]
Mon, 15 Oct 2007
From Net::FTP manpage:
dir ( [ DIR ] ) Get a directory listing of "DIR", or the current directory in long format. In an array context, returns a list of lines returned from the server. In a scalar context, returns a reference to a list.
In some situations, it returns undef in array context, it should probably return a reference to an empty array instead.
Comments are closed for this story.
Trackbacks are closed for this story.