Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!sranha!sran230!sran84!utashiro From: utashiro@sran84.sra.co.jp (Kazumasa Utashiro) Newsgroups: comp.lang.perl Subject: Re: suggestion for dbmopen Message-ID: <281@sran84.sra.co.jp> Date: 29 Jan 91 06:25:22 GMT References: <11205@jpl-devvax.JPL.NASA.GOV> Distribution: comp Organization: Software Research Associates, Inc., Japan Lines: 22 In article <11205@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: >> : "open" take an expression as FILEHANDLE argument. >> : But "dbmopen" doesn't take an expression as ASSOC argument. >> : In some situations, it is useful that "dbmopen" take an expression >> : as ASSOC. >> >> Okay, I'll try to make that legal in 4.0. Is it too much to want to use an expression for do's SOUBROUTINE argument? For example, I want to write like this: do $foo[$num](); do $foo{'bar'}(); I often fall in this trap when making something like a protocol switch. --- K. Utashiro utashiro@sra.co.jp