in reply to Re^2: Automatic generation of textfiles
in thread Automatic generation of textfiles

Maybe I get it wrong, but it seems to me that tamaguchi asked how to create files, not open.
  • Comment on Re^3: Automatic generation of textfiles

Replies are listed 'Best First'.
Re^4: Automatic generation of textfiles
by Fletch (Bishop) on Feb 03, 2006 at 14:06 UTC

    The example he gave was using shell redirection to capture the output of his script. And even so, it's overkill to spawn another shell when a simple { open( my $fh, ">", $newfile ) or die "open $newfile: $!\n" } would suffice.

Re^4: Automatic generation of textfiles
by blazar (Canon) on Feb 04, 2006 at 11:59 UTC
    $ mkdir foo $ cd foo/ $ perl -e 'open F, ">bar"' $ ls bar