On Tue, Feb 24, 2004 at 07:41:46PM +0100, Anthony Vanelverdinghe ([EMAIL PROTECTED]) 
wrote:
> Hi
> 
> is it possible to give a default value to the input you're asking? I tried 
> the code below but this didn't work.
> 
> $URL = "http://";;
> chomp ($URL = $URL.<>);

I've set up a default variable like the following but can't vouch for
it being the proper way to do so.

my $new_uid ||= '700'; # default to 700 if it doesn't exist.
Kent

-- 
"Efficiency is intelligent laziness."
  -David Dunham

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to