Help for this page

Select Code to Download


  1. 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
    }
    
  2. 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
    
  3. or download this
            @files = (@files, $name); #add it!
    
  4. or download this
            push @files, $name; #add it!
    
  5. or download this
    $ perl -Wc bpm.pl
    Found = in conditional, should be == at bpm.pl line 33.
    
  6. or download this
        if ($flag eq "yes") { #if the flag is on
    
  7. 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
    }