I recently wrote a program that at one point got content from an external file and just printed it out to STDOUT. Being new to this I forgot that input is split into arrays at newlines so I put it in a scalar. I realized the mistake, but thought it was odd because when I assigned what should have been a list to a scalar I got not what I had believed to be correct, the number of list elements, but just the first element of the list. Is it a mistake in my code? Or is it just how Perl works? I was just wondering because it seems like it would be troublesome if I ever needed to actually know the number of list elements. Thanks for any replies you might be compelled to make.
~senőr biggles~