grazinggoat
Programmer
Hello Gents!
I'm trying to move gz files to gz files adding a timestamp at the end of the file using an already written ksh script
the ksh script is called fstamp
here is what i'm doing :
move( $File.gz $File.`$BIN/fstamp`.gz );
However I am getting the following syntax error:
Can't call method "gz" without a package or object reference at ./etvarlogmv line 31.
Any thoughts how i can get around this error?
I've written (and it works) the line using system()
system (" /BIN/mv $File.gz $File.`$BIN/fstamp`.gz ");
but was hoping i'd be able to use perl to move the file vs calling out to system.
Thnx
I'm trying to move gz files to gz files adding a timestamp at the end of the file using an already written ksh script
the ksh script is called fstamp
here is what i'm doing :
move( $File.gz $File.`$BIN/fstamp`.gz );
However I am getting the following syntax error:
Can't call method "gz" without a package or object reference at ./etvarlogmv line 31.
Any thoughts how i can get around this error?
I've written (and it works) the line using system()
system (" /BIN/mv $File.gz $File.`$BIN/fstamp`.gz ");
but was hoping i'd be able to use perl to move the file vs calling out to system.
Thnx