Peamasii has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Inline::Files; use IO::Handle; sub headerprint { print "headerprint"; } sub indexsectionprint { my $sectiontitle = shift(@_); my $datatitle = shift(@_); my $indextitle = lc $sectiontitle; my $fh; $indextitle =~ s/ /_/g; $file = "index." . $indextitle . ".html"; print STDERR $file,"\n"; open OUTPUT, '>', "index.network.html" or die "Can't open section fi +le: $!"; STDOUT->fdopen( \*OUTPUT, 'w' ) or die $!; headerprint(); } indexsectionprint("Network", $NETWORK); __NETWORK__ test
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unusual behaviour with Inline-Files and IO-Handle
by kcott (Archbishop) on Dec 07, 2015 at 18:21 UTC | |
|
Re: unusual behaviour with Inline-Files and IO-Handle (select)
by Anonymous Monk on Dec 07, 2015 at 16:09 UTC | |
by Peamasii (Sexton) on Dec 07, 2015 at 16:17 UTC | |
by kcott (Archbishop) on Dec 07, 2015 at 19:02 UTC |