[MacPerl] Spaces at the beginning of each element in an array

2002-01-24 Thread Anette Seiler
Dear all! Please be patient with a beginner writing her first real Perl program. I have a small problem where I can't find an answer in the books or in the archives. I would appreciate a few hints. I have a text file named "fruit", containing several lines, like this: apples oranges peaches a

[MacPerl] Thanks! Re: [MacPerl] Spaces at the beginning of each element inan array

2002-01-24 Thread Anette Seiler
Dear Ronald, Thanks for the quick reply! > >You don't show the most relevant portion of the code, which is printing the >array. I suspect it looks something like this: > >print "@fruit"; You were right! > >When you interpolate an array inside a double-quoted string, the elements >are joined

[MacPerl] Curly braces

2001-03-23 Thread Anette Seiler
Hi! I am learning to program with Perl using a PDF-file on the Internet called Picking up Perl : a tutorial book for new Perl programmers / Bradley M. Kuhn. - 0.12th ed, covering Perl Version 5.6.0. and BBedit 6.0.2 and MacPerl 5.2.0.r4. I am totally new to programming and now I have a proble