Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::Simple; $asdf = get("http://asdf.org"); $asdf =~ s/asdf//g;
And I get this error:
Modification of a read-only value attempted . . .
What gives? I tried using the getstore method, but I got the same error. I can do matches (reading) but not substitutions (writing). How can I make it a read/write value?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Simple and Read-only Values
by Zaxo (Archbishop) on Jul 13, 2003 at 02:30 UTC | |
|
Re: LWP::Simple and Read-only Values
by bobn (Chaplain) on Jul 13, 2003 at 02:26 UTC | |
by Anonymous Monk on Jul 13, 2003 at 02:43 UTC | |
by chromatic (Archbishop) on Jul 13, 2003 at 03:08 UTC | |
by bobn (Chaplain) on Jul 13, 2003 at 03:01 UTC |