in reply to Distinguishing variables from surrounding text

You were very close - you need to put brackets around the variable to separate it from the surrounding string e.g
my $foo = 12345; print "I have ${foo}KB left to transfer\n"; __output__ I have 12345KB left to transfer

HTH

_________
broquaint