Re: assign default value to variables I assign from split
[email protected] ("Jenda Krynicky")
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
From: "Dr.Ruud" <[email protected]> > 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 ===== [email protected] === 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