Opening Filehandles
- Use the open keyword
open JOURNAL, 'foo'; open JOURNAL, '<foo'; open MESSAGES, '>msgs'; open LOGGING, '>>log';
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #25 |
open JOURNAL, 'foo'; open JOURNAL, '<foo'; open MESSAGES, '>msgs'; open LOGGING, '>>log';
| Copyright © 2005 Ian Langworth |