There's more than one way to do things | |
PerlMonks |
Range operator doesn't seem to workby Cristoforo (Curate) |
on Oct 29, 2006 at 18:22 UTC ( [id://581151]=perlquestion: print w/replies, xml ) | Need Help?? |
Cristoforo has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks I don't understand why the following code won't accept a value within the range specified. It dies even when values that should be valid are given. Thanks for any light you may shed on this Chris
Update: Thank you for your helpful answers. I have read perlop (probably not closely enough :-) ). I was looking at some old code snippets i kept around and thought that one of them did what I was first attempting
I think in this example it becomes true when $==5 and then becomes false when $i==10. Just some fuzzy thinking on my part. I guess neniro's example is the one that will work for me. Thanks again Chris
Back to
Seekers of Perl Wisdom
|
|