Maybe something like this? (not quite... but close)
#!/usr/bin/env perl use strict; use warnings; my $host = 'ftp.example.com'; my $user = 'smith'; my $pass = 'secret'; my \ # <-- my $foo = $host; print $user, $pass; __END__ "my" variable $host masks earlier declaration in same scope at ./79833 +5.pl line 11. "my" variable $user masks earlier declaration in same scope at ./79833 +5.pl line 12. "my" variable $pass masks earlier declaration in same scope at ./79833 +5.pl line 12. syntax error at ./798335.pl line 9, near "my \" Execution of ./798335.pl aborted due to compilation errors.
In reply to Re: Redifined variable?
by almut
in thread Redifined variable?
by Rabenschwinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |