Subject: | Net::Cmd message() document array context behaviour |
Date: | Sat, 16 Feb 2013 11:49:04 +1100 |
To: | bug-libnet [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Nosing around the code I see that Net::Cmd message() returns a list of
strings in array context. It'd be good if that was documented.
From the existing wording
message ()
Returns the text message returned from the last command
I thought it was a single string, and mistakenly used it an array
context where I wanted a single string,
foo (x => $x,
msg => $ftp->message,
y => $y);