develooper Front page | perl.beginners | Postings from May 2008

Re: assign default value to variables I assign from split

Thread Previous | Thread Next
From:
Jenda Krynicky
Date:
May 14, 2008 02:26
Subject:
Re: assign default value to variables I assign from split
From: "Dr.Ruud" <rvtol+news@isolution.nl>
> Richard Lee schreef:
> 
> 
> > [$file1,$file2,$file3,$file4,$file5,$file6,$file10,$file25]
> > I didn't want to put them in array
> > since I need to use individual named variable later
> 
> And why is that? 

Maybe because in the real code they are not $file1, $file2,... but 
rather $username, $password, $last_login, $created, $permissions, ...

And assigning the default is the last thing that's done to all of 
them.

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery


Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About