Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concatenating a new filename with existing name plus string 1

Status
Not open for further replies.

starlite79

Technical User
Aug 15, 2008
89
US
Hi,

I have an $infile variable defined and am creating a statistics file with the string "-stats" at the end.

For example, one infile is data.source and the statsfile is defined as $statsfile = $infile . -stats;

On my RHEL machine the result is what I want:

data.source-stats

However, I'm attempting the same thing on a HP-Unix machine and the result is data.source0

How do I correct this on the HP Unix machine?
 
I have noticed no real differences between HP-UX and RHEL perl. I would go over your code or post more code here as I would think it is a code proble move a OS problem.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Thanks audiopro(Keith). The double quotes did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top