in reply to Re^2: Is space supposed to be ignored between a sigil and its variable name?
in thread Is space supposed to be ignored between a sigil and its variable name?
What do those print, and why? (Without cheating and running the code! :)
#!/usr/bin/perl $foo = "foo"; print "1: $ $ $ foo\n"; print "2: $ $$ foo\n"; print "3: $ $$foo\n"; print "4: $$$foo\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is space supposed to be ignored between a sigil and its variable name?
by Bloodnok (Vicar) on Apr 19, 2009 at 00:17 UTC | |
by Porculus (Hermit) on Apr 19, 2009 at 14:06 UTC |