|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: What is substring working on here.by robartes (Priest) |
| on Jun 09, 2005 at 15:16 UTC ( #465167=note: print w/ replies, xml ) | Need Help?? |
|
As gellyfish correctly states, substr() is being used as an lvalue here, i.e. something you can assign to. In this case, you are replacing five characters (the third argument) of $DATE, starting at position two (the second argument, and counting from 0) with the concatenation $YEAR.$MONTH. Hence the output you observe. CU
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||