make like pacman and CHOMP IT !!! ;)

$FILENAME = <STDIN>;
chomp $FILENAME;
...

-----Original Message-----
From: Jennifer Pan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: concatenate $FILENAME and .yyy


Hello all, 

I stdin a file name: xxx.txt
and I would like to have a output file name called x.txt.yyy

This is how I do it 

$FILENAME = <STDIN>;
$output = "$FILENAME.y";
print "$output";


And the result is only
.yyy

How do I concatenate $FILENAME and .yyy? 

Thank you

Reply via email to