Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Thilosophy (Curate)
on Mar 11, 2005 at 03:56 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-24 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found