Re: space in variable referencing

2008-01-12 Thread John W. Krahn
ciwei wrote: Question from a newbie: how to properly use space when reference to variables, array, hash etc. please see the code below: why the first line, second, and third line all output differiently. thanks. ciwei code below == #!/usr/bin/perl The next two lines should be:

Re: space in variable referencing

2008-01-12 Thread Tom Phoenix
On Jan 11, 2008 3:03 PM, ciwei <[EMAIL PROTECTED]> wrote: > Question from a newbie: how to properly use space > when reference to variables, array, hash etc. Don't put any spaces inside a variable name, especially when interpolating it. > print "first line : $user => @{$ttys {$user}} \n"; > prin