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'


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 lurking in the Monastery: (8)
As of 2015-07-06 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls