Jeff Kowalczyk wrote:
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
Thanks.
That is the conditional operator.
Joseph
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
It's a ternary or flip-flop statement. In
this case, the above is the
On Thu, 2003-11-20 at 15:18, Jeff Kowalczyk wrote:
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
Thanks.
Jeff,
This
On Thursday, Nov 20, 2003, at 12:18 US/Pacific, Jeff Kowalczyk wrote:
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and
what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
it is
Jeff Kowalczyk wrote:
I'm not yet able to read certain parts of perl code. What is this
comparison/alternation after the hash lookup on 'otherid' called, and what
does the code do?
$myvar-{id} = ($myvar-{otherid}) ? 'stringA' : 'stringB';
perldoc perlop
[snip]
Conditional Operator