decnartne has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $config_file = "/home/foo/bar"; read_conf($config_file); # el fin # this subroutine in RL actually does something, # but that is outside the scope of the question ;) sub read_conf { my $conf_file = @_; open (CONF, "$conf_file") or die "[ $conf_file ]: $!\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using 'my $var' vs. 'my($var)'
by Fastolfe (Vicar) on Oct 26, 2000 at 18:11 UTC | |
Re: using 'my $var' vs. 'my($var)'
by mirod (Canon) on Oct 26, 2000 at 18:18 UTC | |
by extremely (Priest) on Oct 27, 2000 at 03:42 UTC | |
by merlyn (Sage) on Oct 27, 2000 at 03:50 UTC | |
Re: using 'my $var' vs. 'my($var)'
by redcloud (Parson) on Oct 26, 2000 at 18:13 UTC | |
RE: using 'my $var' vs. 'my($var)'
by decnartne (Beadle) on Oct 26, 2000 at 18:07 UTC | |
by KM (Priest) on Oct 26, 2000 at 18:18 UTC | |
Re: using 'my $var' vs. 'my($var)'
by decnartne (Beadle) on Oct 26, 2000 at 20:20 UTC | |
RE: using 'my $var' vs. 'my($var)'
by JeffreyD (Initiate) on Oct 28, 2000 at 03:55 UTC | |
RE: using 'my $var' vs. 'my($var)'
by Anonymous Monk on Oct 28, 2000 at 06:14 UTC |