cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
Every open returns an output like 17524106 kristin Inappropriate I/O control operation Another strange thing is that the above is a pared-down version of a script that actually processes the data in the files. When I ran that, it read and processed the files for some of the @coders (I/O error notwithstanding) but not the others.#!/usr/bin/perl -w use strict; $| = 1; my @coders = qw(kristin madison scott sean steve zeb); my @files = qw( 17524106 18033790 19683851 27033992 3987896 4058888 4139141 4454294 5303897 5380762 ); foreach my $f (@files) { foreach my $c (@coders) { my $fn = "round1/$c/$f\.txt"; open(my $in, $fn); print "$f\t$c\t$!\n"; close $in; } }
Not sure what I'm doing wrong or how to fix it. Suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inappropriate I/O control operation (Updated)
by 1nickt (Canon) on Sep 26, 2017 at 15:25 UTC | |
by cormanaz (Deacon) on Sep 26, 2017 at 17:02 UTC | |
by dave_the_m (Monsignor) on Sep 26, 2017 at 17:07 UTC | |
|
Re: Inappropriate I/O control operation
by talexb (Chancellor) on Sep 26, 2017 at 18:09 UTC | |
|
Re: Inappropriate I/O control operation
by virtualsue (Vicar) on Sep 26, 2017 at 15:55 UTC | |
by cormanaz (Deacon) on Sep 26, 2017 at 16:54 UTC | |
by VinsWorldcom (Prior) on Sep 26, 2017 at 17:48 UTC | |
by Anonymous Monk on Sep 26, 2017 at 23:44 UTC | |
|
Re: Inappropriate I/O control operation
by Anonymous Monk on Sep 26, 2017 at 18:26 UTC |