Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Syntactic Confectionery Delight
 
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 rifling through the Monastery: (7)
As of 2014-04-19 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls