http://www.perlmonks.org?node_id=1020325


in reply to Trying to sort output

What do you think this is going to do ?

if (@output gt $string) {

@output in scalar context returns the size of the array, and you compare it against a string ?

Replies are listed 'Best First'.
Re^2: Trying to sort output
by Anonymous Monk on Feb 23, 2013 at 18:09 UTC
    I thought it was going to compare the two strings numerically. I am sure I do not understand this correctly. I am pretty new to this. What would be a better way of pulling out the wait seconds from that output and comparing them again the value of 1001 seconds?