in reply to Re: Modification of a read-only value
in thread Modification of a read-only value

Sound advice, but unrelated to the problem. That omission would yield an intermittent readline() on closed filehandle, not the error the OP is seeing.

Makeshifts last the longest.

  • Comment on Re^2: Modification of a read-only value

Replies are listed 'Best First'.
Re^3: Modification of a read-only value
by tachyon (Chancellor) on Aug 21, 2004 at 15:52 UTC

    I read your reply below. It is an error I have never encountered myself but it does look like the issue:

    for ( qw( This is new to me ) ) { print "$_\n"; open(PIPE, "dir|") or die $!; while (<PIPE>) { # <--- This is the line that the error points to print $_; } } __DATA__ This Modification of a read-only value attempted at script line 4.

    Learn something every day. Thanks!

    cheers

    tachyon