Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Automatic generation of textfiles

by idle (Friar)
on Feb 03, 2006 at 08:55 UTC ( [id://527642]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 09: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 06:59 UTC
    $ mkdir foo $ cd foo/ $ perl -e 'open F, ">bar"' $ ls bar

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://527642]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.