In Perl there is a concatenation operator for this kind of thing, the dot (.)
Once you've formatted your date, you should be able to do something like this: my $newfile = $file.$date; rename $file,$newfile; I think that's what you're asking... -----Original Message----- From: West, William M [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 8:13 AM To: [EMAIL PROTECTED] Subject: concatonate to file? i'd like to take a couple of strings to concatonate to a path... here's my start the code::: #!/usr/bin/perl -w use strict; use diagnostics; my $date = `date`; #not sure about redirecting output to $path! $date=~s/( ){3}/; #i think this is proper to just take the string #up to the third whitespace character... my $filename = append_date_to_rest_of_filename(); #the end :) ----------------------------- willy http://www.hackswell.com/corenth thanks :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]