in reply to Use of uninitialized value in substitution iterator in variable expansion

Use of uninitialized value is a warning. To disable it within a given scope use:
no warnings 'uninitialised';
If you're doing templating stuff, you may want to look into one of the many many (many!) templating modules on CPAN (eg. Text::Template). Chances are, there's one that does something you need, so it may be unneccsary to roll your own.
  • Comment on Re: Use of uninitialized value in substitution iterator in variable expansion
  • Download Code

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in substitution iterator in variable expansion
by jaco (Pilgrim) on Apr 07, 2005 at 16:06 UTC

    I'm painfully aware of all the available templating systems on CPAN. However, You're looking at the complete extent of my use, and I didn't think I'd need to use an entire Template system in order to expand a few vars.

    While i could turn off warnings, I thought it best to first see if there was a "proper" way to resolve the warning from being printed. Should I assume that the only way around this type of warning is to disable it in some fashion? That may be entirely possible, but that's all i wanted to find out.

    thanks for the tip on disableing just that type of warning