Andrew.Savige@ir.com <Andrew.Savige@ir.com> wrote: > In an earlier post, I asked all contestants to please format > their programs on a single line, since that is what most > experienced golfers seemed to be doing. I want to comply with > normal and accepted practice here. If anyone is unhappy with the > single line formatting rule, please speak up. I'm not unhappy, but it seems an unnecessary restriction. An alternative would be to change GolfScore() to something like sub GolfScore { my $script = shift; open(FF, $script) or die "error: open '$script'"; local($/, $_); $_ = <FF>; close(FF); s/^#!.*?perl(.*)\n/$1/; # remove shebang except parameters s/\n$//; # delete final newline in file return length; } -- Keith C. Ivey <kcivey@cpcug.org> Washington, DCThread Previous | Thread Next