Help for this page

Select Code to Download


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