On Thu, 2008-07-24 at 10:06 -0400, yitzle wrote:
> On Thu, Jul 24, 2008 at 12:44 AM, Noah <[EMAIL PROTECTED]> wrote:
> >
> > Hi there,
> >
> > okay I have a strange issue.  all the lines as part of "my @lines = keys
> > %ip;" have a space at the beginning of the line of each key.
> >
> > cheers,
> >
> > Noah
> 
> Without knowing how %ip was formed or how you are deciding there is a
> space, this is hard to "solve".
> 

The problem is that:

  print "@lines";

and:

  print @lines;

do two different things.  There are no leading spaces in @lines; the
double quote places them there.

See `perldoc perlvar` and search for '$LIST_SEPARATOR'



-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to