Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Use of uninitialized value in substitution (s///)by AvanTTix (Initiate) |
on Oct 06, 2011 at 23:46 UTC ( [id://930085]=perlquestion: print w/replies, xml ) | Need Help?? |
AvanTTix has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to remove a text string using the "~s///g" syntax from a list of directory paths which is stored in an array, and it's just not working. I googled this topic for hours, double-checked my syntax over and over, but I just don't understand what I'm doing wrong. Before I go down the road of using "substr" & "index", I'd like to see if anyone has any input/thoughts/suggestions on this. The result makes no sense to me, and I cannot figure out what I'm doing wrong.
Line 192 is "$ACETmpltDir = ~s/$ACEEnvironment//g;". Any help/insight would be very much appreciated!
Back to
Seekers of Perl Wisdom
|
|