On Jul 10, 2014, at 9:00 AM, Ron Bergin wrote:
> my($state, @zipcodes) = split /[=,]/, $line;

        Interesting concept, the multiple split.  I'd be interested in knowing 
how Perl knows to give the singular value on the left of the "=" to $state and 
all other values split on the "," to @zipcodes.  Is it because $state is a 
scalar and @zipcodes is an array, or is it more complex than that?

Thanks,
Frank

http://www.surfshopcart.com/
Setting up shop has never been easier!

Now on GitHub
https://github.com/surfshopcart/surfshop


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to