perladdict has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How to change directory recursivly
by Moron (Curate) on Jun 20, 2007 at 14:50 UTC
    Rather than shell out 200*N times where N is the number of operations per file, it is better (and walks around the problem you pose!) to use e.g. IPC::Open3 to maintain a dialogue with a single clearcase session (one process only!. It also means you don;t have to cd 200 times either. e.g.:

    Actually I don't need to code this e.g. - it's all been done before in ClearCase::Proc::ClearTool. One of these days I'll have to give up coding and let cpan do it all ;)

    __________________________________________________________________________________

    ^M Free your mind!

Re: How to change directory recursivly
by blazar (Canon) on Jun 20, 2007 at 14:32 UTC
    I am trying by storing all the vobtags in one array and calling each tag by using loop,in that i am using chdir function after that i am executing the below command

    I'm not sure if I understand your question, let alone if it is actually a Perl question at all. But if you have, say, a @files array which contains a list of filenames complete of full paths, then what's wrong with the following? (Or some obvious and perhaps better written modification of it.)

    use File::Basename; use Cwd 'abs_path'; # ... for (@files) { my ($name, $path)=fileparse $_; chdir abs_path $path; do { Something::with($name) }; }