diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
In B::Deobfuscate - Deobfuscates symbol names I included a bit of code that runs $name =~ m{^(\W+)} or die "Invalid pad variable name $name"; my $sigil = $1; with the assumption that a pad variable always has a sigil and the sigil always matches /\W+/. Am I correct in making that assumption?
A note: I started out with the sigil as the first character until running into variables like *$foo where I had to keep the first two characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pad variables without sigils?
by shotgunefx (Parson) on Mar 20, 2003 at 20:10 UTC | |
by diotalevi (Canon) on Mar 20, 2003 at 20:58 UTC | |
by shotgunefx (Parson) on Mar 20, 2003 at 21:05 UTC | |
by jand (Friar) on Mar 21, 2003 at 09:56 UTC |