Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Sorting array, getting modification of read-only value error

by myelinviolin (Novice)
on Nov 28, 2012 at 19:40 UTC ( #1006094=note: print w/replies, xml ) Need Help??


in reply to Re: Sorting array, getting modification of read-only value error
in thread Sorting array, getting modification of read-only value error

I think I get what you are trying to say, but I can print out the array with no problems, so the whole thing should be defined, correct? So I am not sure how I would go about fixing this.
  • Comment on Re^2: Sorting array, getting modification of read-only value error

Replies are listed 'Best First'.
Re^3: Sorting array, getting modification of read-only value error
by tobyink (Abbot) on Nov 28, 2012 at 20:04 UTC

    You can print out undefined values. (Though if you have warnings enabled, that kind of behaviour will earn you one.)

    I'm not entirely sure how you'd fix it. Some self-contained code which doesn't rely on files from your system that I don't have on my computer might help.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006094]
help
Chatterbox?
[LanX]: see SOPW
[r@j]: guys i am begginer on perl and above code is not working on window environment.kindly suggest which support on both window and Unix environment
[holli]: And I kindly suggest you post a question, instead of spamming the chetterbox
[holli]: my spelling... can you actually aquire dyslexia?
[LanX]: SoPW = Seekers of Perl Wisdom, the section for asking and answering general Perl questions. A form for asking a new Perl question can be found at the bottom of that page. (Be sure to read Posting on PerlMonks before posting!)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2017-10-23 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?