in reply to Re^2: uninitialized values
in thread uninitialized values

... I want to use those print stmt. outside if block ...

The code example of hippo defines and initializes the lexical  @values1 and  @val1 arrays outside the if-block and then uses them both inside and outside the block. Please take another look at this example and see if things make more sense.