Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: create gagillian files in current directory

by jwkrahn (Monsignor)
on Dec 11, 2012 at 11:48 UTC ( #1008284=note: print w/ replies, xml ) Need Help??


in reply to create gagillian files in current directory

#!/usr/bin/Perl

perl (and *nix) are case sensitive so that is usually spelled:

#!/usr/bin/perl


open(FILE1,$file1);

You should verify that the file opened correctly:

open FILE1, '<', $file1 or die "Cannot open '$file1' because: $!";


if (($filename eq "") || (defined $filename eq 'false')) {

defined $filename will never be eq to the string 'false'


Comment on Re: create gagillian files in current directory
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-10-25 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls