When I do this, I get : ./script.pl <<EOD 1234 5678 90 EOD
Undefined subroutine &main::sumIt called at ./script.pl line 7, <STDIN> line 3. #!/usr/bin/perl #require 'script.pl'; @userArray = <STDIN>; $sum = sumIt(@userArray); print $sum; Mr. Shawn H. Corey wrote: > Amichai Teumim wrote: >> ./script.pl | echo 1234 >> >> Or is this nonsensical? Very very new to Perl. > > This is actually shell: > > echo 1234 | ./script.pl > > Try: > > ./script.pl <<EOD > 1234 > 5678 > 90 > EOD > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/