Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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'

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 exploiting the Monastery: (7)
As of 2016-10-01 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.