Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: concatenate directories and files into one csv

by GrandFather (Saint)
on Apr 28, 2009 at 22:27 UTC ( [id://760768]=note: print w/replies, xml ) Need Help??


in reply to concatenate directories and files into one csv

Rules for using open:

  1. Always use the 3 parameter version of open
  2. Always use locally scoped lexical file handles
  3. Always check the result

The template is:

open my $inFile, '<', $filename or die "Failed to open $filename: $!\n +";

Omit the newline in the die if you want to show the line number where the open failed.


True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://760768]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found