>>>>> "AG" == Agnello George <[email protected]> writes:
AG> sorry i ment
AG> if (stdout == keys (%$retrn{$stdout}) ) {
AG> ##so some code
AG> }
i don't think you are getting it yet. keys gets you the list of keys
ONLY in a list context. == provides a scalar context which will get you
the number of keys in the hash. i can't see your needing the number of
keys and then comparing that to stdout. also why is stdout a bareword?
it isn't the handle STDOUT so it won't work under strict. why don't you
tell us what your real goal is and not your solution?
uri
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/