Lines Matching refs:fh
114 $fh = new FileHandle;
115 if ($fh->open("< file")) {
116 print <$fh>;
117 $fh->close;
120 $fh = new FileHandle "> FOO";
121 if (defined $fh) {
122 print $fh "bar\n";
123 $fh->close;
126 $fh = new FileHandle "file", "r";
127 if (defined $fh) {
128 print <$fh>;
129 undef $fh; # automatically closes the file
132 $fh = new FileHandle "file", O_WRONLY|O_APPEND;
133 if (defined $fh) {
134 print $fh "corge\n";
135 undef $fh; # automatically closes the file
138 $pos = $fh->getpos;
139 $fh->setpos($pos);
141 $fh->setvbuf($buffer_var, _IOLBF, 1024);
230 =item $fh->print
234 =item $fh->printf
238 =item $fh->getline
240 This works like <$fh> described in L<perlop/"I/O Operators">
244 =item $fh->getlines
246 This works like <$fh> when called in a list context to