in reply to Passing a variable to a sub process.
Perhaps what you want to do is:
#!/usr/bin/env perl use warnings; use strict; my $nossl = 'foo'; mkdirs($nossl); sub mkdirs { my $nossl = shift; print "nossl=$nossl\n"; }
This prints:
nossl=foo
Take a look at shift, perlsub and my.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a variable to a sub process.
by misconfiguration (Sexton) on Apr 02, 2008 at 18:21 UTC | |
by Bilbo (Pilgrim) on Apr 02, 2008 at 18:58 UTC |