in reply to How to Open Files from Subdirectory
$file: "/files/data.pri"
$file_sec: "/files/files/data.sec"
This should do what you want:
prints now:# mycode.pl my $file = "files/data.pri"; my $name = (split(/\./,$file))[0]; my $file_sec = "$name.sec";
$file: "file/data.pri"
$file_sec: "file/data.sec"
hope this helps,
Critter
|
|---|