meonkeys has asked for the wisdom of the Perl Monks concerning the following question:
During execution I get the following fatal error...#!/usr/bin/perl -w use strict; use IO::All; my $temp_file = io('?'); "foo" > $temp_file;
I believe I'm following the documentation correctly, so I would expect the file to be writable. However, I don't even think a temporary file is being created.Can't call method "print" on an undefined value at /usr/lib/perl5/site +_perl/5.8.3/IO/All.pm line 618.
Also, anyone know if it's possible to give IO::All a tempfile template like "/tmp/foo_XXXXXX" ala File::Temp::tempfile()?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::All and temporary files
by castaway (Parson) on Oct 27, 2004 at 06:54 UTC | |
by meonkeys (Chaplain) on Oct 28, 2004 at 22:57 UTC | |
|
Re: IO::All and temporary files
by ides (Deacon) on Oct 27, 2004 at 20:49 UTC | |
by meonkeys (Chaplain) on Oct 28, 2004 at 23:05 UTC |