in reply to Re: Passing a variable to a sub process.
in thread Passing a variable to a sub process.

I hope to someday be as wise as you two, the depth of understanding you have is quite amazing.

After the string $nossl was passed into the subroutine I changed some things.
my $nossl = shift; my $newsite = $nossl;


Thanks again for your help, I learned a lot from this lesson.

Replies are listed 'Best First'.
Re^3: Passing a variable to a sub process.
by Bilbo (Pilgrim) on Apr 02, 2008 at 18:58 UTC
    Since you never use $nossl within your routine, this is equivalent to
    my $newsite = shift;
    There is no significance in using the same name inside and outside the routine. This just says that you want to set $newsite using the first parameter passed to the subroutine.