Madam has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Madammy $tempValue = "/home/madam/scripts/madam.tcl"; my $temp1 = "temp1"; my $temp2 = "temp2"; my @split = split( '/',$tempValue ); $split[$#split] = "$temp1.".$temp2.".$split[$#split]"; my $j = join( '/',@split );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: optimise perl code
by rev_1318 (Chaplain) on Jul 07, 2005 at 11:47 UTC | |
by dirac (Beadle) on Jul 07, 2005 at 13:30 UTC | |
|
Re: optimise perl code
by prasadbabu (Prior) on Jul 07, 2005 at 12:06 UTC | |
by graff (Chancellor) on Jul 08, 2005 at 03:42 UTC | |
|
Re: optimise perl code
by demerphq (Chancellor) on Jul 07, 2005 at 14:22 UTC | |
|
Re: optimise perl code
by davidrw (Prior) on Jul 07, 2005 at 12:37 UTC |