> -----Original Message-----
> From: Pedro A Reche Gallardo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: emptying an scalar variable
> 
> 
> Hi all, can anyone tell me how to empty an scalar variable once a
> condition is met? I am doing something like this:
> 
> $line .= $_
> 
> if ($_ =~ /something/) {
> 
> print $line;
> 
> empy $line;
> }

Depends on what you mean by "empty". See:

   perldoc -f undef

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to