Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Re: Error: can't modify scalar reference

Thread Tools

Re: Error: can't modify scalar reference

Purl Gurl
Posts: n/a
HP wrote:

> When i run my following prog.

> our $test='this is just test';
> print $test;
> print "----test\n";

> it gives me compilation error: can't modify scalar reference at line 1


this is just test----test

Do you mean a "just" test or "just a test" for your print?

Seems your test nor your code, are just. Perhaps your "just"
is an archaic variation on "joust."

Purl Gurl
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't modify constant item in scalar assignment emrefan Perl Misc 4 06-05-2007 03:21 AM
object reference handle (like perl's reference to scalar) Eric Mahurin Ruby 4 05-06-2005 05:30 PM
Replace scalar in another scalar Mark Perl Misc 4 01-27-2005 02:48 PM
Shorthand for($scalar) loops and resetting pos($scalar) Clint Olsen Perl Misc 6 11-13-2003 12:50 AM
Re: Error: can't modify scalar reference Perl 0 08-18-2003 04:56 PM