Re: reading each entry in input file

2001-12-10 Thread $Bill Luebkert
Ronald Warner wrote: I use the following script to create an activation script in win2k for user activation: open(INFILE,$ARGV[0]) or die ERR INSRC; while ($line=INFILE) { chop($line); print net user $line \/add \/passwordreq:yes /passwordchg:no /expires:never \n; }; close(INFILE);

(no subject)

2001-12-10 Thread miri kim
I'd like not to get any email from this site any more. bye Miri Kim _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ ActivePerl mailing list [EMAIL

RE: regexp again

2001-12-10 Thread Jenda Krynicky
From: Hemphill, Barry [EMAIL PROTECTED] Congratulations Agustin; you get the award for Worst Answer of the Week. Wow, will he get a nice diploma signed by TomC ? - You're assuming he's using DOS, and that a 'type' command would be found by the shell - Even *if* type is in

MySQL data into MS Word template ?

2001-12-10 Thread David Mintz
I've been wondering how hard it would be to get Perl to fetch data from a MySQL database and merge it with an MS Word file -- not too hard, I would imagine -- but I have no experience with the COM or anything like that. Can anybody suggest some docs/modules that I should look at to get started?

RE: regexp again

2001-12-10 Thread Arms, Mike
Barry's award gave me a good laugh. But then Lyubomir shows that even when the problems are pointed out, some folks just refuse to read. :-) I especially like the while loop. Guess he worried about multiple TITLE tags. Of course it would help in that case to use the 'g' regex modifier. As it

RE: regexp again

2001-12-10 Thread Paul Malinowski
Please take me off this list = Programming Logistics, Inc. GSA (GS35F4599H) Paul Malinowski Office: (410) 349-2070 Business: (410) 562-8720 e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online!

Re: MySQL data into MS Word template ?

2001-12-10 Thread Jeremy Wadsack
David Mintz ([EMAIL PROTECTED]): I've been wondering how hard it would be to get Perl to fetch data from a MySQL database and merge it with an MS Word file -- not too hard, I would imagine -- but I have no experience with the COM or anything like that. Can anybody suggest some

When I write data into file, all data is erasing

2001-12-10 Thread web_tur
Dear Sirs, With this script I am writing data into the file use Fcntl ':flock'; open (FORUM, name/$name.usr); flock(FORUM, $LOCK_EX); print FORUM ($namedat\n); flock(FORUM, $LOCK_UN); close (FORUM); I don't know why some times, my script write nothing into the file also erase the file's

When I write data into file, all data is erasing

2001-12-10 Thread web_tur
Dear Sirs, With this script I am writing data into the file use Fcntl ':flock'; open (FORUM, name/$name.usr); flock(FORUM, $LOCK_EX); print FORUM ($namedat\n); flock(FORUM, $LOCK_UN); close (FORUM); I don't know why some times, my script write nothing into the file also erase the file's

Re: MySQL data into MS Word template ?

2001-12-10 Thread David Mintz
On Mon, 10 Dec 2001, Jeremy Wadsack wrote: David Mintz ([EMAIL PROTECTED]): I've been wondering how hard it would be to get Perl to fetch data from a MySQL database and merge it with an MS Word file snip Can anybody suggest some docs/modules that I should look at to get started?snip

some times I am losing all data

2001-12-10 Thread web tur
Dear Sirs, I am using following script to write data into file: open(DB, name/$name.usr); flock(DB, $LOCK_EX); print DB $namedat; #flock(DB, $LOCK_UN); close(DB); But sometimes this script write nothing into file, also erase all data in the file. How can I stop this?

OO Modules (was RE: regexp again)

2001-12-10 Thread David Mintz
On Mon, 10 Dec 2001, Arms, Mike wrote: snip I would add: The HTML::HeadParser module is ready built to do what you want. Why reinvent the wheel (and probably not cover all of the necessary cases)? snip I don't know, but I would speculate that a lot of Perl newbies -- particularly those

FW: MySQL data into MS Word template ?

2001-12-10 Thread Michael B. Wright
It is unclear to me why you need to involve Perl. If you have ODBC set up, you should be able to directly access your data (you might need a Data-Link abstraction for older versions of Word). If you need processing above and beyond what Word and MySql can do, then I'd look at doing some macros.