hi ibe got pel string in var (say $buffer) and function which reuire file name as one of its arguments(the function belong to external module. cant change) the file name content should be $buffer. here there away which i can convert $buffer sow i can send it to the function instead of the file name itamar