Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: can this be turned into a compile-time error?

by Thilosophy (Curate)
on Mar 11, 2005 at 03:56 UTC ( #438525=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub modify {
       chomp( $_[0] );
    ...
    
    modify('fred');
    # What would you expect to happen to 'fred'?
    
  2. or download this
    Modification of a read-only value attempted at /tmp/t.pl line 2.
    
  3. or download this
    Can't modify constant item in modify at -e line 1, at end of line
    Execution of -e aborted due to compilation errors.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438525]
help
Chatterbox?
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-05-20 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?