in reply to Re: Warning is right or not ?
in thread Warning is right or not ?
You are right, but the cause of returning more than single scalar was a typo, so its fixed now.
(BTW: Is the latter behavior really intended?) Do you mean $count++ ?
If so, I need the previous value of @data, so if you can tell me a better solution I'll use it.
Because if I try the code as
it returns wrong value if there are additional notes in the definition fileif ( grep( /^$airline/, @data) ) { return $data[-2]; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Warning is right or not ?
by AnomalousMonk (Archbishop) on Dec 21, 2012 at 22:07 UTC | |
by Anonymous Monk on Dec 23, 2012 at 19:13 UTC |
In Section
Seekers of Perl Wisdom