manishrathi 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: Perlscript is not generating output in files
by kennethk (Abbot) on Jun 23, 2011 at 16:35 UTC
    Please read How do I post a question effectively?. There is a lot of material in your post that, by your own admission, is not pertinent to the issue you are experiencing. It also doesn't help that we can't easily replicate your issue because of the lack of input.

    Regardless, I suspect your issue is that:

    $file_content[$u] = s/logo-$source_branch/logo-$cloneName/g ;

    should read

    $file_content[$u] =~ s/logo-$source_branch/logo-$cloneName/g ;

    See Binding Operators if you are unsure why.

Re: Perlscript is not generating output in files
by Fletch (Bishop) on Jun 23, 2011 at 17:59 UTC

    ALWAYS CHECK THE RETURN VALUE OF SYSTEM CALLS SUCH AS open.

    open( my $fh, '>', "bar" ) or die "Can't write to bar: $!\n";

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.