1.

Which variable is used as a handle to an open file?(a) $dbh(b) $sth(c) $fh(d) $hI got this question in semester exam.The doubt is from Perl DBI Overview topic in division MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Right choice is (c) $fh

Easiest explanation: The variable named ‘$fh’ is a handle to an open FILE. ‘$h’ is a generic handle and the meaning depends on context. ‘$DBH’ is a handle to a database OBJECT. ‘$sth’ is a handle to a QUERY object.



Discussion

No Comment Found

Related InterviewSolutions