Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

why this scaler error?

by basicdez (Pilgrim)
on Nov 14, 2001 at 20:11 UTC ( #125341=perlquestion: print w/replies, xml ) Need Help??

basicdez has asked for the wisdom of the Perl Monks concerning the following question:

Can't modify not in scalar assignment at line 3, near + ""foo000";"
This is the code that is generating this error, please help me if you can.
!#/usr/bin/perl-e $x = "foo000"; $x++; print $x, "\n";
peace, LOVE and ((code)) basicdez

Replies are listed 'Best First'.
Re: why this scaler error?
by japhy (Canon) on Nov 14, 2001 at 20:13 UTC
    You have "!#". It should be "#!".

    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Re: why this scaler error?
by Rich36 (Chaplain) on Nov 14, 2001 at 20:47 UTC
    Also, are you sure you meant "-e" on the "#!" line? I don't think that works.
    There's more than one way to screw it up...

Re: why this scaler error?
by basicdez (Pilgrim) on Nov 14, 2001 at 20:53 UTC
    Thanks for all the help on this piece. I promise to continue to learn as I go. peace, LOVE and ((code)) basicdez

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://125341]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-01-20 00:14 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (56 votes). Check out past polls.