[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] BOUNCE macperl-forum@macperl.org: Non-member submission from ["Makofske, David" <dmakofsk@akamai.com>]



you could always just put...

     chomp($text = <STDIN>);

...at the beginning of the script. Then the text arguments you want to pass will be stored in $text. The chomp() removes the newline at the end (when you hit enter to accept the input). If you don't want to parse $text for the multiple text arguments you could...

     chomp($text1 = <STDIN>);
     chomp($text2 = <STDIN>);
     chomp($text3 = <STDIN>);

...or if you want to get fancy and let people know what they're supposed to input you could...

     print '$text1 = ';
     chomp($text1 = <STDIN>);
     print '$text2 = ';
     chomp($text2 = <STDIN>);
     print '$text3 = ';
     chomp($text3 = <STDIN>);

...The list goes on but that's a nice basc idea. Also try signing up on the list to get a responce proper.

le meas,
--Nick

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org