Re: Error: can't modify scalar reference

Discussion in 'Perl' started by Purl Gurl, Aug 18, 2003.

  1. Purl Gurl

    Purl Gurl Guest

    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



    PRINTED RESULTS:
    ________________

    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
    Purl Gurl, Aug 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    991
  2. Eric Mahurin
    Replies:
    4
    Views:
    245
    David A. Black
    May 6, 2005
  3. Clint Olsen
    Replies:
    6
    Views:
    358
    Jeff 'japhy' Pinyan
    Nov 13, 2003
  4. Mark

    Replace scalar in another scalar

    Mark, Jan 27, 2005, in forum: Perl Misc
    Replies:
    4
    Views:
    163
    Arndt Jonasson
    Jan 27, 2005
  5. emrefan
    Replies:
    4
    Views:
    360
    emrefan
    Jun 5, 2007
Loading...

Share This Page