Okay, so I solved this problem, but if you have any insights into why the above caused a set fault, I'd still be interested to learn.
I solved the problem by putting this into the while (<FH>) loop.
# skip lines with only zeros
/^(0\s)+$/ && next;
Does the quadratic number of regex statements...
Oops...
If I still have your attention, I need it to ignore identical lines that are all zeros. I tried adding this to sub identical:
if ($x =~ /^(0\s)+$/) {
return 0;
}
else {
return ($x eq $y);
}
And that causes a seg fault. The lines can't be too big for regex stuff since it's...
Mike, you are the MAN! Worked perfectly!
I tend to think too much like a C programmer in perl, and I forget how incredibly easy (and fast) it is to just manipulate whole lines like that to set up really easy, non-looping comparisons. Not only does this work, but it's almost instantaneous...
Sorry again mike.
1 2 3 0 0 4 5 6 0 7 8 9
1 2 3 0 4 5 6 7 0 0 8 9
Are not identical. Each point is a reference to a distinct place in a large vector. 0's don't shift out or anything.
Chaz, thanks for the new trick. I've wondered if there was an easy way to get array-style access to a file...
Yeah, it's looking for duplicate lines in the whole file. I tried introducint "use strict;" but I got all kinds of package warnings. Do I have to put main:: in front of every single line if I use strict?
A couple questions about your advice:
1) Reading the file line by line (and not saving...
haha! Unfortunately I am the network admin :)
I did actually find that solution on microsoft support. Unfortunately, they told me to boot into the recovery console and copy winnt/repair/security to winnt/system32/config/security first. I removed the computer accound in ADUC and together that...
All my regular users are in the same group. The logon locall and deny logon locally settings were both undefined in that GPO. I specifically added mydomain.com/Domain Computers to the logon locally policy, but that did nothing. I'm not sure how to specifically get to an individual computer...
So I have a win2k server with win2k clients. One client (on the network 4 or 5 months already) "suddenly" stopped being able to logon sometime in the past couple days. The worker came in on Sunday, reportedly to a functioning computer. He was out of the office M + T, now when he tries to log...
All the money here comes from grants for education from the governments of the US, Australia, Japan, and a few others. These grants rarely support recurring costs. Before I got here someone got some grant money to set up a single server machine with win2k server and exchange, but then left and...
...seems most places that offer off-site mail either offer some kind of POP3/domain alias thing where they'll host mail for you at you@yourdomainalias.*** or they want to offer full, off site exchange services. I found one british company that will do pretty much what I want for much less than...
Not sure if this is the right forum for this, but can't find a specific wireless forum here, and I'll be running it with a win2k served network, so here goes.
I have a long thin building: 150-200 feet corridor, one room on each side of corridor. There is lots of alluminum plating and struts...
If you have 200 computers already up and running and highly modified you might be screwed. I'm not a big windows scripter though. Anyone here with expertise there know if this kind of thing can be automated? Perhaps the server can run a script when a new local domain account is created on a...
I had this same problem. Look into C:\Docs and Settings\.
There should be a folder for each user account, the admin, and a default user or all users folder. I've found that with only one account set up, usually the changes made to the desktop, start menu, and all that go into the All Users...
Running win2k server with win2k clients. The desktop time on my computer is correct, with the correct time zone. My clients also have the correct time zone. But when they log in, the day is set to yesterday. If they reset it to today, it gets pushed back again when they log in. We're right...
Okay, not quite that basic. I know how I'm supposed to be able to add accounts to outlook as described in the link you posted. I've been trying with a fastmail.fm IMAP account one of my users has, with my ISP SMTP server as outgoing. Neither incoming from fastmail or outgoing to my ISP will...
Anyone with this problem have users using different internet mail accounts or just getting exchange to gather mail from a central account on the ISP? I need users to have exchange for internal and random internet IMAP/POP3 accounts for external, with ISP's SMTP as outoing. Haven't gotten this...
I'm running win2k server, ISA server 2000, and exchange 2000 with only dial-up to the internet. I need to allow clients' outlook to independently check various IMAP and POP3 internet mail servers and download messages through my server. I also need to send all outgoing mail through my ISP's...
I beleive so. The dial-up account I'm using used to belong to one of the workers here, and that worker had an email account with them and her outlook relayed outgoing SMTP mail through the ISP's outgoing server. I've been assuming that means that since I'm dialing in with that account that if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.