Problem 1
This is a new set of email ids - vfojob@gee.com,dooejas@gee.com,viobes2@gee.com,asbxxv@gee.com,gibees@gee.com,fiddef@gee.com,vihhoo@gee.com,giboss@gee.com,veedi@gee.com,ekdnm@gee.com,kimsrp@gee.com
This is the old set of email ids in the numerical format - ~!*37!@644.2>_576138@644.2>_013*9*@644.2>_6794@644.2>_%'4&3@644.2>_6>>558@644.2>_<2~`84@644.2>_<`93@644.2>_%>`&8@644.2>_84&3<3@644.2>_2~9~8@644.2>_2:319@644.2>_
conversion code is being used as mentioned below [a-j] by [0-9] and [k-z] by [~!_<>%^&*() ; `"=?]
I wish to store the new set of email ids along with the already existing old set of email ids which were stored in numerical format. I have problem in obtaining the repeated email ids after saving the new set in the old . this is the script used to resolve this problem but there is an error - @entries =qw (.................................................);
-
-
@list=qw (.....................................................);
-
-
foreach $ entry ($ list)
-
-
{ $ count== 0; foreach $ list ( $ entry)
-
{ if ($ list = ~m/$ entry/;)
-
{ splice (@list, @ count, 1);
-
-
print " $ entry was removed .\n";
-
$ count++ } } }
-
-
Print "$_\n" for @ list;
so , what is the correct script? 3 1633
Did you write this code? You should learn the basics first. Your script should not even complie correctly.
Add these two lines to your script and fix your syntax errors. - use strict;
-
use warnings;
I don't understand your conversion chart. Do you have more details?
--Kevin
I understand the conversion but the perl code is just a total mess and I have no idea what the output should be.
I agree with Kevin its a mess, i cant see how you would get that to work, second Fix your code formating -
use strict;
-
use warnings;
-
-
@entries =qw(.................................................);
-
@list=qw(.....................................................);
-
-
foreach $entry ($list)
-
{
-
$count=0;
-
foreach $list ($entry)
-
{
-
if ($list = ~m/$entry/)
-
{
-
splice (@list, @count, 1);
-
print "$entry was removed .\n";
-
$count++;
-
}
-
}
-
}
-
-
print "$_\n" for @list;
-
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Ram |
last post by:
We are trying to load text tab delimited files into SQL server using
informatica 5.1 version. The text files are FTPed to a local server
and then files are moved to applicable folder before...
|
by: Jon Slaughter |
last post by:
I'm having a little trouble understanding what the slicing problem is.
In B.S.'s C++ PL3rdEd he says
"Becayse the Employee copy functions do not know anything about Managers,
only the Employee...
|
by: Ken Varn |
last post by:
I have a managed C++ function that accepts an IntPtr argument. I am passing
in a variable of type HANDLE for the IntPtr argument. The compiler does not
issue any warnings for this, so I am...
|
by: andyjgw |
last post by:
Hi all, hope someone can help here, I'm really stuck. Reading and
googling like mad, to no avail so far...
Basically, my problem *seems* to boil down to type conversion:
Here's a sample web...
|
by: ctara_shafa |
last post by:
Hi,
I have a following problem: I'm creating a list and one of the fields
should contain the date. Firstly I ask the user for the year, month and
day and then I'd like to collect all this data in...
|
by: Geoff Muldoon |
last post by:
Cross-posted to comp.databases.oracle.misc and comp.lang.php ...
Using PHP 4.3.11 on Linux and ADODB data abstraction library.
Oracle client version is 10.1.
Can successfully connect to...
|
by: Martin Jørgensen |
last post by:
Hi,
I'm relatively new with C-programming and even though I've read about
pointers and arrays many times, it's a topic that is a little confusing
to me - at least at this moment:
----
1)...
|
by: karthikla |
last post by:
Hi Experts,
Could you please help me on how to get access 2002 file format exactly
while doing conversion from Access 97 file format by
DBEngine.CompactDatabase() function?
Code:
Private...
|
by: John |
last post by:
Hi
This .net is driving me crazy!!
In VB6 I had a type which contained a couple of multi-dimentional arrays
which i used to create and read records:
Type AAA
:
Array1(10,10,2) as Integer
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |