> open (FILE, "text.txt");
> @file = <FILE>;
> close(FILE);
Now when this dumps the contents of FILE into an array and closes the file, does it delete the contents? When I write back to the file, will it insert duplicates, or start fresh?
This would be excellent if I could achive the...
Perhaps you could help with the following as well, this should be an easy one for you:
I want to take a text file containing user names that appear as such:
user1
user2
user3
ect...
I want to take each line into an array (I have this part already) and the delete the lines from the text file, 5...
Oh man, you are beautiful!!!! Works exactly as I want it to, thank you much. I will tweak around with the code and post back if I have any further questions, again, I appreciate it!
Shawn (DMG2000)
compute_x@yahoo.com
ok...my input reads as follows:
mark@sales
ken@sales
kelly@sales
bob@accounting
kim@accounting
ect....
what I need to do is parse so that I get an output like:
sales:
mark
ken
kelly
accounting:
bob
kim
I have tried the code above, and even tried tweaking, but get bomb errors from perl....
I...
No, the splice does not take out from 5 to end, it only removes the first 5, this has been tried and true so I know this works.
Shawn (DMG2000)
compute_x@yahoo.com
Hmmmm...this is what happens when you stop thinking in logic:
code line should be:
foreach $line (@test[0,1,2,3,4])
I hate posting to myself, very simullar to talking to ones self.....
Shawn (DMG2000)
compute_x@yahoo.com
Okay, this is the situation:
### Gets the text fil ###
$list = 'list22.txt';
open(INF,"$list");
@test = <INF>;
### for each line, writes the line####
foreach $line (@test) {
chomp($line);
print "$line\n";
}
print "\nnext five lines being...
Hi:
I am new to perl and cgi, atho am experienced with vb and asp, so bear with me:
I need to take a text file generated from a db of users@domains and I need to accomplish two things:
1>
Seperate the users@domains so that output is like
domain1:user1,user2,user3
domain2:user1,user2,user3
and...
Hi:
I am new to perl and cgi, atho am experienced with vb and asp, so bear with me:
I need to take a text file generated from a db of users@domains and I need to accomplish two things:
1>
Seperate the users@domains so that output is like
domain1:user1,user2,user3
domain2:user1,user2,user3
and...
I have an orders application that I would like to print out the unprocessed orders via a menu item. Do I need to make a DataReport based on this, or can I have a Print Command that prints all the records displayed in the app form?
Thanks!
Is it possible to have my app,when installing, utomaticly add a database to the ODBC under Win98 & NT Via a registry key? or do I need to create a dll?
Thanks!
I need to get my date input mask so that acceepts "mm/yy" format for a credit card expiration....I have tried using "99/99/00;0;_" for the mask, but when entered 01/02 it appears in the db as 01/02/00.
Thanks!
Ah hah....I gues it is working...my prob was when the child form loaded normal, it was small and had no scroll down, not a issue, but adding the height and width on load works excellent.
Thanks again!
Alright, the windowstate helped! But the MDIForm scrollbar property set to true does not display a v scroll bar as needed. Do I need to actually make scrollbar controls with the child form? And if so, is there an easy way to do this?
Thanks for your help!
Is there a way to open a MDI child form so that it is maximized in the parent window? Also, on the same note, is it possible to set scroll bars in the parent window if the MDI child is bigger than the parent window, but not on load? Thanks!
gotta be possible, in Start ->Accessories ->System Tools in Win98, there is the System Info app that tells you the uptime of your pc, along with everything else...build off that if you can
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.