-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 13 Jan 2005 20:02, Harold Castro wrote: > my $numbers = <STDIN>; > my @array = $numbers; Amend to: my @array = split(/ /,$numbers);
This will split up the string based on the pattern (in this case, a single space. You may want to change that to gain robustness, e.g. /[ \t]+/ will split on any number of spaces and tabs) - -- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0x776DB663 = DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFB5iFgFNNkhamc620RArBuAKCF/Y10NwVcibuOFZ3kDprIfDJuSgCfY8Wk UGWTr/2MXAdOyz7iZFRQxPw= =Hnqz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>