Re: Acepting default value for user input

2009-02-27 Thread Rob Dixon
Gunnar Hjalmarsson wrote: > Chas. Owens wrote: >> On Fri, Feb 27, 2009 at 11:07, Gunnar Hjalmarsson wrote: >>> Sarsamkar, Paryushan wrote: I would like to accept some user inputs (using ), but it might be easier for a user if I can provide the default value, so that they just have t

Re: Acepting default value for user input

2009-02-27 Thread Jim Gibson
On 2/27/09 Fri Feb 27, 2009 2:05 PM, "Gunnar Hjalmarsson" scribbled: > Which takes us to the obvious step of validating the user input. > > my $normal; > while (1) { > print 'Do you want to do the normal thing? [yes] : '; > chomp( $normal = ); > $normal =

Re: Acepting default value for user input

2009-02-27 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Fri, Feb 27, 2009 at 11:07, Gunnar Hjalmarsson wrote: Sarsamkar, Paryushan wrote: I would like to accept some user inputs (using ), but it might be easier for a user if I can provide the default value, so that they just have to press ENTER. How can I do that? I've played

Re: Re: Acepting default value for user input

2009-02-27 Thread Chas. Owens
On Fri, Feb 27, 2009 at 11:16, wrote: > Hi people!! > > I´m using Perl for the first time in my Mac OS X... > > > How can I check installed modules ??? > > > I am running a Mac OS X Leopard 10.5.6 with Perl version v5.8.8 built for > darwin-thread-multi-2level... > > > Thanks > Please do not

Re: Acepting default value for user input

2009-02-27 Thread Chas. Owens
On Fri, Feb 27, 2009 at 11:07, Gunnar Hjalmarsson wrote: > Sarsamkar, Paryushan wrote: >> >> I would like to accept some user inputs (using ), but it might be >> easier for a user if I can provide the default value, so that they just >> have to press ENTER. >> >> How can I do that? I've played aro

Re: Re: Acepting default value for user input

2009-02-27 Thread juliaaaa . 1
Hi people!! I´m using Perl for the first time in my Mac OS X... How can I check installed modules ??? I am running a Mac OS X Leopard 10.5.6 with Perl version v5.8.8 built for darwin-thread-multi-2level... Thanks

Re: Acepting default value for user input

2009-02-27 Thread Chas. Owens
On Fri, Feb 27, 2009 at 10:03, Sarsamkar, Paryushan wrote: snip > I would like to accept some user inputs (using ), but it might be > easier for a user if I can provide the default value, so that they just > have to press ENTER. snip > Do you want to do the normal thing? [yes] : > > Do you want to

Re: Acepting default value for user input

2009-02-27 Thread Gunnar Hjalmarsson
Sarsamkar, Paryushan wrote: I would like to accept some user inputs (using ), but it might be easier for a user if I can provide the default value, so that they just have to press ENTER. How can I do that? I've played around with but I cannot make it work exactly as I'd like. E.g. Do you want