sincerly sorry, windows (pick a flavor: XP Pro, 2000, 2003 server), using cygwin. a bit long perhaps but this example should display the problem.
#!/usr/bin/perl -w use strict; #use Getopt::Long; use IO::File; # Reads a file and returns it as a string # `fileName' the name of the file to be read # returns the content of the file as a list of lines in list context # or as a string in scalar context sub getFile($) { my ($fileName) = @_; print("getFile: $fileName\n"); local *IN; open(IN, "<$fileName") or die("Error open($fileName): $!"); if (wantarray) { my @line = <IN>; return map { my $value = $_; chomp($value); $value; } @line; } else { my $fileValue = join("",<IN>); chomp($fileValue); return $fileValue; } } sub getLocalConfig($) { my ($file) = @_; my @localCfg = getFile("$file"); # reorganize the list so that all space delimited items are # individual elements my $flat = join(" ", @localCfg); # remove any extraneous whitespace $flat =~ s/\t\r\f\n//g; @localCfg = split(/ /, $flat); return @localCfg; } sub readLocalConfig($) { my ($cfgName) = @_; print("Reading local configuration\n"); # read a local config file .build-cfg if (-e "$cfgName") { return getLocalConfig("$cfgName"); } else { print("No local config file\n"); } } sub main() { @ARGV = readLocalConfig("build-cfg"); print(@ARGV); print("\n"); # hand this off to GetOptions::Long to parse } main();
using the following build-cfg file:
--hello --setThis=2 --helloAgain --setString=bye
on 5.8.2 this prints only the last entry --setString=bye whereas using 5.6.0 all entries are recovered. the point of the file being to preset command line options to the script. Again, sorry for the lack of initial information and thanks for the reponses. bill

In reply to I/O difference between 5.6.0 and 5.8.0 by billp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.