- or download this
#!/usr/bin/perl
use strict;
use Tie::File;
use List::Util qw/shuffle/;
- or download this
#!/usr/bin/perl
use warnings;
use strict;
use Tie::File;
use List::Util qw/shuffle/;
- or download this
my $line;
my $i=0;
...
open(FILECOUNTER,$fileCounter);
$count = <FILECOUNTER>;
chomp($count);
- or download this
&readfile();
- or download this
tie @array, 'Tie::File', $numberFile || die("failed to open $numbe
+rFile");;
- or download this
tie my @array, 'Tie::File', $numberFile or die "failed to open $nu
+mberFile";
- or download this
if (-e $tempFile) {
open(TEMPFILE,"+<$tempFile") || die("failed to open $tempFile"
+);
- or download this
if ( open TEMPFILE, '+<', $tempFile ) {
- or download this
my $counter=0;
- or download this
tell(TEMPFILE);
- or download this
while ($line = <CHARFILE>) {
- or download this
while ( my $line = <CHARFILE> ) {
- or download this
if ("$line $array[$i]") {
- or download this
foreach ( $line ) {
- or download this
print shuffle $array[$i] . "\n";
- or download this
print "\n" . $line . " " . rand "$array[$i]" .
+ "\n";
- or download this
print "\n", $line, " ", rand $array[ $i ], "\n
+";