> URI>  still no warnings and strict. USE THEM. 
> 
> do it now. add them and declare all your variables. it will save your
> ass.
> 
I am running -w when I run the code. 
> 
> URI> what is the \ doing there. it makes the space into a space. it is not
> seen by split or the regex engine.

This is the ONLY way I can get the ID=x value. I tried both your example and 
many others. They all produced a single character, not the complete value. This 
is producing the exact result. So obviously something is using it.
> 
> URI> why the quotes? you don't need to quote something if it is a single value

Point taken, I will remove them.
> 
> 
> URI> use named variables and not $_ whenever you can. it makes for better
> code and it is easier to follow. there are cases where $_ must be used
> and some places where it is good but names are better in general

I'm getting 5 values and I need to do something different with each of them. I 
believe that is when $_ is helpful as each iteration through the loop will be a 
different value. It seems to be to be a shorter way and relatively clean to do 
in this instance. If there is a better way , please enlighten me.
> 

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to