- or download this
$dbentry = "BPM-$info.txt"; #add DB prefix
if (-e $dbentry) { #check if file already exists (it should't)
...
print DBENTRY "$info\n "; #add the Album info
close(DBENTRY); #make sure we're all neat
}
- or download this
$dbentry = "BPM-$info.txt"; #add DB prefix
open(DBENTRY, ">>$dbentry") || die "cannot open file $dbentry: $!"; #o
+pen w/ error handling
print DBENTRY "$info\n "; #append Album info
close(DBENTRY); #make sure we're all neat
- or download this
@files = (@files, $name); #add it!
- or download this
push @files, $name; #add it!
- or download this
$ perl -Wc bpm.pl
Found = in conditional, should be == at bpm.pl line 33.
- or download this
if ($flag eq "yes") { #if the flag is on
- or download this
foreach my $filename ( @files ) { #for each filename in the array
open(PHILE, '<', $filename) || die "cannot open $filename: $!"; #o
+pen file w/ error handling
...
close PHILE; #finish up
}