Displaying 1 result from an estimated 1 matches for "opsera".
Did you mean:
opera
2007 Jun 06
2
lookup in CSV recipe
I await Luke''s node settings implementation with interest. At the
moment however, I have this sort of ugliness:
$site = $hostname ? {
fred => "opsera",
barney => "bedrock",
default => "unknown site",
...
}
So I''ve knocked up this little function to use CSV files instead. Now
I can just do:
$site = lookup_csv("sites.csv",$hostname,"site")
where sites.csv is:
hos...