Newsgroups: comp.lang.perl.misc
From: train2ve...@hotmail.com (venus)
Date: 24 Sep 2001 01:16:27 -0700
Local: Mon, Sep 24 2001 4:16 am
Subject: faster execution
Hi all,
I wrote a perl script but I'm not sure if there's a better way of ... %LOCATION = ( 'London,,UK', "LON", while (<INPUT_FILE>) { foreach $location_name (%LOCATION ) { if ($location_name eq $location ) { printf FILE "$location_code\,"; } } Thanks in advance. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||