in reply to Array input

This is easy - do something like while($line = <STDIN>) { chomp $line; last unless $line =~ /\d/; push @income, $line }. The idea is you read data until something "different" happens. My example terminates when the user enters a line without any numbers in it. You should pick something more appropriate to your own use.

__SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;

Replies are listed 'Best First'.
Re: Re: Array input
by Anonymous Monk on Nov 14, 2002 at 03:47 UTC
    THANK YOU DIOTALEVI! You're very prompt with your reply, so prompt that I'm impressed. I've searched many PERL sites, and must admit, this one is a wealth of knowledge!!! I'm destined to be a regular visitor at Perlmonks.org now. Once again, thanks!

      Well good. Now go get yourself a real user account over here at Creating an account on PerlMonks and join us.

      __SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;