Re: [PBML] Convert array to scalar
- On Wed, Apr 30, 2003 at 04:53:19PM -0400, Nguyen, David M wrote:
> That's what I have but it does not give me correct output.When a scalar walue is stored into array, it is stored into the first
> @currentdate = $telnet->cmd('date | cut -d\' \' -f2-3');
> $currentdate = @currentdate;
> I should get: April 30 ------> Today date.
(counted form null) slot.
$currentdate = $currentdate;
> But it gave me: 1Thats correct, because array contain one entry. See perldoc perldata.