diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-02 11:59:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-02 11:59:00 +0000 |
commit | 91730391723e88af3951ee6e6d79896ae9269796 (patch) | |
tree | 4db2891edea26b07dd403be67dadf53987d784ce /perl_checker_fake_packages/Gtk2.pm | |
parent | 9f85d1a79fc1c8bd1542194d4730a3ff2e90e991 (diff) | |
download | perl_checker-91730391723e88af3951ee6e6d79896ae9269796.tar perl_checker-91730391723e88af3951ee6e6d79896ae9269796.tar.gz perl_checker-91730391723e88af3951ee6e6d79896ae9269796.tar.bz2 perl_checker-91730391723e88af3951ee6e6d79896ae9269796.tar.xz perl_checker-91730391723e88af3951ee6e6d79896ae9269796.zip |
simplify handling of variables declared in "if (...) ..." to meet perl's way.
eg:
if (my $i = foo()) {
} else {
$i; # accessing $i here is allowed
}
if (my $i = foo()) {
} elsif ($i = bar()) { # don't use "my" for $i since it's already in scope
}
Diffstat (limited to 'perl_checker_fake_packages/Gtk2.pm')
0 files changed, 0 insertions, 0 deletions