in reply to Re^2: replace with hash value?!
in thread replace with hash value?!

No, only the m// match, the s/// fail.
Boris

Replies are listed 'Best First'.
Re^4: replace with hash value?!
by lcollins (Novice) on Jan 19, 2005 at 13:52 UTC
    yes, but can't I save $1 from m// to $PRTABLE and use it in second part of s///? Thanks!!
      Yes, but the second part of s/// is never reached, since the first part of s/// does not match. It would work, if the first part match!.
      Boris
        Which is ok because I'm saying in the s/// "if you find the time of day replace it with this hash value". If it doesn't find it it won't do anything, right? I guess my question was can't I access a hash from within a reg like this s/whatever/$clocks{$PRTABLE}/; If your answer is yes you can then I'm messing up the logic somewhere, or maybe I can't use that kind of reg and variable combination. I just don't understand why s/// replaces a blank but with print it give me the correct value.