in reply to Re^2: Processing data in on dir and copying, then processing into another dir
in thread Processing data in on dir and copying, then processing into another dir
So in my example, say you were in a dir named 6, your topdir would be "../7" , as you suggest. But setup a test script that just does printouts with no copying, and see how your syntax works. Usually it's NOT a good idea to jump up dirs with .., so I would go with full path names and that will solve your problem.#!/usr/bin/perl use File::Spec $filename= $0; $abs_path = File::Spec->rel2abs($filename); print "$abs_path\n"; $filename = File::Spec->abs2rel($abs_path); print "$filename\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Processing data in on dir and copying, then processing into another dir
by lomSpace (Scribe) on Jan 08, 2009 at 21:01 UTC |