Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!sdd.hp.com!wuarchive!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: ".." inside a variable Message-ID: <1991May08.133024.18055@convex.com> Date: 8 May 91 13:30:24 GMT References: <1180016@hpcc01.HP.COM> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 27 Nntp-Posting-Host: pixel.convex.com From the keyboard of okamoto@hpcc01.HP.COM (Jeff Okamoto): :I'm trying to get the .. construct to work when it is passed in as a command :line argument. What I am having trouble with is getting the .. to properly :expand. I've tried a bunch of ways to force the result into an array context, :but I'm obviously doing something wrong. : :I've tried a number of variations on the following, to no avail: : : $a = "'A0'..'A9'"; # Eventually will be shift(@ARGV); : : eval "\@b = (\$a)"; : :Can anyone offer any suggestions? I'm not sure why you're going through the eval. I would just use: @b = 'A0' .. 'A9'; and be done with it. If for some reason you must use the eval way, remove the 2nd backslash: : eval "\@b = ($a)"; --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."