for ex : print "works " if ( -l FH ) ; # not working print "works " if ( -l "name_of_the_file" ) # works