Stop remote service
Hi, Is there a way to stop remote service? (Remote machine can be either NT or W2K). Do I need any specific permission for that? Thanks, Eran
RE: Stop remote service
Check out Win32::Service. And yes, you will, most likely, need Administrator level access on the remote computer to do this. http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/site/lib/Win32/Service.html HTH -Original Message-From: Kaufman Eran (StarHome) [mailto:[EMAIL PROTECTED]Sent: Wednesday, December 10, 2003 12:27 AMTo: '[EMAIL PROTECTED]'Subject: Stop remote service Hi, Is there a way to stop remote service? (Remote machine can be either NT or W2K). Do I need any specific permission for that? Thanks, Eran
RE: Stop remote service
Think you need at least Power User -Original Message-From: Messenger, Mark [mailto:[EMAIL PROTECTED]Sent: 10 December 2003 08:40To: Kaufman Eran (StarHome); [EMAIL PROTECTED]Subject: RE: Stop remote service Check out Win32::Service. And yes, you will, most likely, need Administrator level access on the remote computer to do this. http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/site/lib/Win32/Service.html HTH -Original Message-From: Kaufman Eran (StarHome) [mailto:[EMAIL PROTECTED]Sent: Wednesday, December 10, 2003 12:27 AMTo: '[EMAIL PROTECTED]'Subject: Stop remote service Hi, Is there a way to stop remote service? (Remote machine can be either NT or W2K). Do I need any specific permission for that? Thanks, Eran == This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. ==
RE: Stop remote service
I say most likely for that reason, and because you can give *any person or group* access to stop/start/pause/resume a service remotely via a GPO (at least, under Win2k or newer). -Original Message- From: Smith, Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:18 AM To: Messenger, Mark; Kaufman Eran (StarHome); [EMAIL PROTECTED] Subject: RE: Stop remote service Think you need at least Power User -Original Message- From: Messenger, Mark [mailto:[EMAIL PROTECTED] Sent: 10 December 2003 08:40 To: Kaufman Eran (StarHome); [EMAIL PROTECTED] Subject: RE: Stop remote service Check out Win32::Service. And yes, you will, most likely, need Administrator level access on the remote computer to do this. http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/site/lib/Win32/Service.html HTH -Original Message- From: Kaufman Eran (StarHome) [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:27 AM To: '[EMAIL PROTECTED]' Subject: Stop remote service Hi, Is there a way to stop remote service? (Remote machine can be either NT or W2K). Do I need any specific permission for that? Thanks, Eran == This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. == ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: parsing text
Nice idea: I'm surprised it's not been done before (I didn't look on CPAN ...) Just a thought, fwiw: if you are sure there will be no spaces in your leaders - the bit between the row name and the data (...) - and if you can be sure that each column consists of data without white space then you could surely use a regular expression to get at the data? You $text string does have a row (number 6) with a space in the leader: but maybe you get around that by requiring a column to have white space on either side...? Just a thought. lee -Original Message- From: Joe Youngquist [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 9:58 PM To: [EMAIL PROTECTED] Subject: parsing text Hello list, I've been trying to figure out a generalized method of parsing space formatted text to outout into html tables. The data is verly likely written out using Perl Reports and Pictures, has anyone come up with a general method? Here's a few examplesof the text that I'd format to html tables: NOTE: Best to use Courier New font to keep the formatting |-OVERALL STATISTICS--| TOTALS O-REB D-REB TOTAL PF FOA TO A/TO Hi Pts --- Lowe, Kenneth... 01515 15 0 14 11 1.3 26 Teague, David... 616229 094 2.2 19 Booker, Chris...1321348 0 10 10 1.0 20 Buckley, Melvin. 51722 11 0 108 1.2 20 McKnight, Brandon... 11112 15 1 18 15 1.2 13 Buscher, Brett.. 1 910 15 099 1.0 10 Kartelo, Ivan...221941 14 027 0.3 12 Kiefer, Matt 91221 14 049 0.4 7 Parkinson, Austin... 3 5 84 0 207 2.9 8 Nwankwo, Ije 2 2 42 022 1.0 2 Carroll, Matt... 1 3 46 002 0.0 2 Ford, Andrew 0 1 12 001 0.0 0 Garrity, Kevin.. 0 1 10 000 0.0 0 Hartley, Chris.. 1 0 10 001 0.0 0 Total...72 143 215 115 1 98 86 1.1 78 Opponents...72 130 202 131 - 62 103 0.6 68 TEAM STATISTICS PUR OPP SCORING... 431 352 Points per game. 71.8 58.7 Scoring margin..+13.2- FIELD GOALS-ATT... 142-328 134-336 Field goal pct.. .433 .399 3 POINT FG-ATT 36-10225-99 3-point FG pct.. .353 .253 3-pt FG made per game... 6.0 4.2 FREE THROWS-ATT... 111-14759-99 Free throw pct.. .755 .596 REBOUNDS.. 215 202 Rebounds per game... 35.8 33.7 Rebounding margin... +2.2- ASSISTS... 98 62 Assists per game 16.3 10.3 TURNOVERS. 86 103 Turnovers per game.. 14.3 17.2 Turnover margin. +2.8- Assist/turnover ratio... 1.1 0.6 STEALS 44 31 Steals per game. 7.3 5.2 BLOCKS 23 23 Blocks per game. 3.8 3.8 WINNING STREAK6- Home win streak.3- ATTENDANCE3311823435 Home games-Avg/Game. 3-11039 0-0 Neutral site-Avg/Game...- 3-7812 BY PERIOD 1st 2ndTotal Team 203 228 - 431 Opponents... 164 188 - 352 The goal I'm trying to reach is to build a method that no matter the table of data sent to it, will find where the columns are for the data. It's easy to see where the columns are, but my attempt to tell a program how to see the columns has been embarrising to say the least. The road I was walking down was to take each line of a table and look for spaces (skipping dashes and pipes) when one is found, look down the rest of the table in this current column with the space. If all the way down the table are spaces (or a dash or pipe) then there is likely a column boundry at this column location. Once the
Using Tie::IxHash and DB_File/MLDBM modules to keep hash values in insertion order in the file system
Hi, I have implemented a hash containing references to other complex structures. I want to be able to retrieve the complex structures in the order in which they were inserted in the hash, therefore I am using Tie::IxHash. I also want to maintain the hash in a file, therefore I am using MLDBM. Both modules does not seem to work together. If I try the following: tie %site_dp_collection, Tie::IxHash; tie %site_dp_collection, MLDBM, $filename, O_EXCL | O_CREAT; The values inserted in the hash %site_dp_collection are not persistent (Hash values seem to be kept only in memory not in the filesystem). But, If I change the order or the tie: tie %site_dp_collection, MLDBM, $filename, O_EXCL | O_CREAT; tie %site_dp_collection, Tie::IxHash; the values inserted in the hash %site_dp_collection are not persistent, but the the hash values are not retrieved from the hash in the insertion order. I suppose that IxHash only works with structures in memory not in the filesystem. Has anyone tried to do the same thing?. If it is not possible to use both modules together, I am thinking in creating instead an array that will keep the hash keys in insertion order. Any additional ideas, solĂștions? Thanks. Pedro Hernandez, Pedro (Merant).vcf Description: Binary data
Re: parsing text
Thank you $Bill, I'll have to digest your code to see if there is something I can integrate into the solution. The problem in using a hash to hold the column start positions is that those columns shift based on how much stat is placed in the column. For example, the PF column once the total reaches the hundreds, the column will expand wider, pushing the other columns to the right. But there is some promise here, if I compromise on being completely generalized in the parsing. By generalized I mean that I supply the parser with no strings to try and match. This way I can use the same parser for any kind of text that is in this kind of format. Thanks again, for the time you spent on this and I think that there is some, well in fact, most of the code after the defining of the section starts and the column starts, do a much better job at pulling out the data than what I had thought of. JY - Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Joe Youngquist [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 7:35 AM Subject: Re: parsing text Joe Youngquist wrote: Hello list, I've been trying to figure out a generalized method of parsing space formatted text to outout into html tables. The data is verly likely written out using Perl Reports and Pictures, has anyone come up with a general method? Here's a slightly different approach breaking the text into 3 sections and lines in that section and fields in each line (didn't get to the HTML part yet) : my $text = EOD; |-OVERALL STATISTICS--| TOTALS O-REB D-REB TOTAL PF FOA TO A/TO Hi Pts -- - Lowe, Kenneth... 01515 15 0 14 11 1.3 26 Teague, David... 616229 094 2.2 19 Booker, Chris...1321348 0 10 10 1.0 20 Buckley, Melvin. 51722 11 0 108 1.2 20 McKnight, Brandon... 11112 15 1 18 15 1.2 13 Buscher, Brett.. 1 910 15 099 1.0 10 Kartelo, Ivan...221941 14 027 0.3 12 Kiefer, Matt 91221 14 049 0.4 7 Parkinson, Austin... 3 5 84 0 207 2.9 8 Nwankwo, Ije 2 2 42 022 1.0 2 Carroll, Matt... 1 3 46 002 0.0 2 Ford, Andrew 0 1 12 001 0.0 0 Garrity, Kevin.. 0 1 10 000 0.0 0 Hartley, Chris.. 1 0 10 001 0.0 0 Total...72 143 215 115 1 98 86 1.1 78 Opponents...72 130 202 131 - 62 103 0.6 68 TEAM STATISTICS PUR OPP SCORING... 431 352 Points per game. 71.8 58.7 Scoring margin..+13.2- FIELD GOALS-ATT... 142-328 134-336 Field goal pct.. .433 .399 3 POINT FG-ATT 36-10225-99 3-point FG pct.. .353 .253 3-pt FG made per game... 6.0 4.2 FREE THROWS-ATT... 111-14759-99 Free throw pct.. .755 .596 REBOUNDS.. 215 202 Rebounds per game... 35.8 33.7 Rebounding margin... +2.2- ASSISTS... 98 62 Assists per game 16.3 10.3 TURNOVERS. 86 103 Turnovers per game.. 14.3 17.2 Turnover margin. +2.8- Assist/turnover ratio... 1.1 0.6 STEALS 44 31 Steals per game. 7.3 5.2 BLOCKS 23 23 Blocks per game. 3.8 3.8 WINNING STREAK6- Home win streak.3- ATTENDANCE3311823435 Home games-Avg/Game. 3-11039 0-0 Neutral site-Avg/Game...- 3-7812 BY PERIOD 1st 2ndTotal Team 203 228 - 431 Opponents... 164 188 - 352 EOD # you can expand on this table to include a prefix and suffix for a field # and whether you want to use
Re: parsing text
Hello Lee, My first attempt was to use a regular expression, but there are no guaranties on the header format... The real bugger is sometimes the column headers will not have any spaces between them, though this is rare, it is something I'll need to keep an eye on and change manually - I'm not that great of a programmer to tell me script to make a judgment call on that there column chief. :) My hope right now is just to make something that works with my data 99% of the time and something that will work as close to 100% of the time as long at the column headers have a space between them. Once I do, this would be the first time I'd have the joy of contributing to the Perl community. JY - Original Message - From: Lee Goddard [EMAIL PROTECTED] To: Joe Youngquist [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 5:30 AM Subject: RE: parsing text Nice idea: I'm surprised it's not been done before (I didn't look on CPAN ...) Just a thought, fwiw: if you are sure there will be no spaces in your leaders - the bit between the row name and the data (...) - and if you can be sure that each column consists of data without white space then you could surely use a regular expression to get at the data? You $text string does have a row (number 6) with a space in the leader: but maybe you get around that by requiring a column to have white space on either side...? Just a thought. lee -Original Message- From: Joe Youngquist [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 9:58 PM To: [EMAIL PROTECTED] Subject: parsing text Hello list, I've been trying to figure out a generalized method of parsing space formatted text to outout into html tables. The data is verly likely written out using Perl Reports and Pictures, has anyone come up with a general method? Here's a few examplesof the text that I'd format to html tables: NOTE: Best to use Courier New font to keep the formatting |-OVERALL STATISTICS--| TOTALS O-REB D-REB TOTAL PF FOA TO A/TO Hi Pts --- Lowe, Kenneth... 01515 15 0 14 11 1.3 26 Teague, David... 616229 094 2.2 19 Booker, Chris...1321348 0 10 10 1.0 20 Buckley, Melvin. 51722 11 0 108 1.2 20 McKnight, Brandon... 11112 15 1 18 15 1.2 13 Buscher, Brett.. 1 910 15 099 1.0 10 Kartelo, Ivan...221941 14 027 0.3 12 Kiefer, Matt 91221 14 049 0.4 7 Parkinson, Austin... 3 5 84 0 207 2.9 8 Nwankwo, Ije 2 2 42 022 1.0 2 Carroll, Matt... 1 3 46 002 0.0 2 Ford, Andrew 0 1 12 001 0.0 0 Garrity, Kevin.. 0 1 10 000 0.0 0 Hartley, Chris.. 1 0 10 001 0.0 0 Total...72 143 215 115 1 98 86 1.1 78 Opponents...72 130 202 131 - 62 103 0.6 68 TEAM STATISTICS PUR OPP SCORING... 431 352 Points per game. 71.8 58.7 Scoring margin..+13.2- FIELD GOALS-ATT... 142-328 134-336 Field goal pct.. .433 .399 3 POINT FG-ATT 36-10225-99 3-point FG pct.. .353 .253 3-pt FG made per game... 6.0 4.2 FREE THROWS-ATT... 111-14759-99 Free throw pct.. .755 .596 REBOUNDS.. 215 202 Rebounds per game... 35.8 33.7 Rebounding margin... +2.2- ASSISTS... 98 62 Assists per game 16.3 10.3 TURNOVERS. 86 103 Turnovers per game.. 14.3 17.2 Turnover margin. +2.8- Assist/turnover ratio... 1.1 0.6 STEALS 44 31 Steals per game. 7.3 5.2 BLOCKS 23 23 Blocks per game. 3.8 3.8 WINNING STREAK6- Home win streak.3- ATTENDANCE3311823435
Re: parsing text
A quick comment as I have not really been following this thread. A report is basically a formatted file with each row formatted differently based on something which is always relatively consistent regarding spacing and offsets. For example, in the report you sent, here are what look like some simple rules. the line below/OVERALL STATISTICS/ starts the labels the next line has a set format based on char pos i.e. totals is in columns 0 to 5 O-Reb is columns x to y. 2 lines after the this are the players detail ignore all blank lines line of /TEAM STATISTICS/ start a different set of rules. Yes it is basically brute forced and not really flexible and you might not get some pretty PERL code, but is will work as long as the report layout stays the same and I have found that once reports are generated inertia sets and they usually stay that way for a long, long time. This is basically what you mentioned below, you can use regexes to know when to start each new rule and mid statements or something else to implement the rule. |-OVERALL STATISTICS--| TOTALS O-REB D-REB TOTAL PF FOA TO A/TO Hi Pts --- Lowe, Kenneth... 01515 15 0 14 11 1.3 26 Teague, David... 616229 094 2.2 19 Booker, Chris...1321348 0 10 10 1.0 20 Buckley, Melvin. 51722 11 0 108 1.2 20 McKnight, Brandon... 11112 15 1 18 15 1.2 13 Buscher, Brett.. 1 910 15 099 1.0 10 Kartelo, Ivan...221941 14 027 0.3 12 Kiefer, Matt 91221 14 049 0.4 7 Parkinson, Austin... 3 5 84 0 207 2.9 8 Nwankwo, Ije 2 2 42 022 1.0 2 Carroll, Matt... 1 3 46 002 0.0 2 Ford, Andrew 0 1 12 001 0.0 0 Garrity, Kevin.. 0 1 10 000 0.0 0 Hartley, Chris.. 1 0 10 001 0.0 0 Total...72 143 215 115 1 98 86 1.1 78 Opponents...72 130 202 131 - 62 103 0.6 68 TEAM STATISTICS PUR OPP SCORING... 431 352 Points per game. 71.8 58.7 Scoring margin..+13.2- FIELD GOALS-ATT... 142-328 134-336 Field goal pct.. .433 .399 3 POINT FG-ATT 36-10225-99 3-point FG pct.. .353 .253 3-pt FG made per game... 6.0 4.2 FREE THROWS-ATT... 111-14759-99 Free throw pct.. .755 .596 REBOUNDS.. 215 202 Rebounds per game... 35.8 33.7 Rebounding margin... +2.2- ASSISTS... 98 62 Assists per game 16.3 10.3 TURNOVERS. 86 103 Turnovers per game.. 14.3 17.2 Turnover margin. +2.8- Assist/turnover ratio... 1.1 0.6 STEALS 44 31 Steals per game. 7.3 5.2 BLOCKS 23 23 Blocks per game. 3.8 3.8 WINNING STREAK6- Home win streak.3- ATTENDANCE3311823435 Home games-Avg/Game. 3-11039 0-0 Neutral site-Avg/Game...- 3-7812 BY PERIOD 1st 2ndTotal Team 203 228 - 431 Opponents... 164 188 - 352 Scott Sisson Phone: (215)-419-6728 Fax: (215)-640-3732 Joe Youngquist [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent by:cc:
Seemingly simple???
Hello, I have a small problem, which at first seems simple, but has proven to be a bit of a hair puller. A collegue and I are importing some windows formatted ascii files (onto our linux systems) and extracting certain string data. Simple enough. However, our problem is that some of the string data is terminated with what appears to be a windows carriage return..looks like this: somestring^M anotherstring^M I tried chop(), but it does not seem to recognize that character. Any suggestions? Thanks, Dominic ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Using Tie::IxHash and DB_File/MLDBM modules to keep hash values in insertion order in the file system
Last I checked you can only tie a variable to one class at a time. You can either tie with Tie::IxHash or MLDBM, but not both. If you want to use both functionalities you are going to have to write your own class. Since the underlying guts of each module are quite dissimilar you might be better off subclassing MLDBM and writing your own Tie::IxHash-like functionality. Peter Guzis Web Administrator, Sr. ENCAD, Inc. - A Kodak Company email: [EMAIL PROTECTED] www.encad.com -Original Message- From: Hernandez, Pedro (Merant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:02 AM To: '[EMAIL PROTECTED]' Subject: Using Tie::IxHash and DB_File/MLDBM modules to keep hash values in insertion order in the file system Hi, I have implemented a hash containing references to other complex structures. I want to be able to retrieve the complex structures in the order in which they were inserted in the hash, therefore I am using Tie::IxHash. I also want to maintain the hash in a file, therefore I am using MLDBM. Both modules does not seem to work together. If I try the following: tie %site_dp_collection, Tie::IxHash; tie %site_dp_collection, MLDBM, $filename, O_EXCL | O_CREAT; The values inserted in the hash %site_dp_collection are not persistent (Hash values seem to be kept only in memory not in the filesystem). But, If I change the order or the tie: tie %site_dp_collection, MLDBM, $filename, O_EXCL | O_CREAT; tie %site_dp_collection, Tie::IxHash; the values inserted in the hash %site_dp_collection are not persistent, but the the hash values are not retrieved from the hash in the insertion order. I suppose that IxHash only works with structures in memory not in the filesystem. Has anyone tried to do the same thing?. If it is not possible to use both modules together, I am thinking in creating instead an array that will keep the hash keys in insertion order. Any additional ideas, solĂștions? Thanks. Pedro ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Seemingly simple???
Try the Linux command: dos2unix -- Mike Arms -Original Message- From: Maraglia, Dominicx [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Seemingly simple??? Hello, I have a small problem, which at first seems simple, but has proven to be a bit of a hair puller. A collegue and I are importing some windows formatted ascii files (onto our linux systems) and extracting certain string data. Simple enough. However, our problem is that some of the string data is terminated with what appears to be a windows carriage return..looks like this: somestring^M anotherstring^M I tried chop(), but it does not seem to recognize that character. Any suggestions? Thanks, Dominic ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Installing with CPAN.pm
Randy Kobes wrote: I've seen this problem too with directories that have spaces in their names. Try editing C:\Perl\lib\CPAN\Config.pm and use the dos short path name for nmake. I recalled having a similar problem some time ago so I looked in my Config.pm (v5.6.1 built for MSWin32-x86-multi-thread on Win2K Pro) and there was no mention of nmake at all. What's with that? Terry Fowler my Config.pm file: # This is CPAN.pm's systemwide configuration file. This file provides # defaults for users, and the values can be changed in a per-user # configuration file. The user-config file is being looked for as # ~/.cpan/CPAN/MyConfig.pm. $CPAN::Config = { 'build_cache' = q[10], 'build_dir' = q[\.cpan\build\.], 'cache_metadata' = q[1], 'cpan_home' = q[\.cpan\.], 'dontload_hash' = { }, 'ftp' = q[C:\WINNT\SYSTEM32\ftp.EXE], 'ftp_proxy' = q[http://www-blv-proxy.boeing.com:31060], 'getcwd' = q[cwd], 'gzip' = q[ ], 'http_proxy' = q[http://www-blv-proxy.boeing.com:31060], 'inactivity_timeout' = q[0], 'index_expire' = q[1], 'inhibit_startup_message' = q[0], 'keep_source_where' = q[\.cpan\sources\.], 'lynx' = q[], 'make' = q[], 'make_arg' = q[], 'make_install_arg' = q[], 'makepl_arg' = q[], 'ncftp' = q[], 'ncftpget' = q[], 'no_proxy' = q[boeing.com], 'pager' = q[C:\WINNT\SYSTEM32\more.COM], 'prerequisites_policy' = q[ask], 'proxy_user' = q[], 'scan_cache' = q[atstart], 'shell' = q[], 'tar' = q[ ], 'term_is_latin' = q[1], 'unzip' = q[c:\program files\zipey pro trial\zipeypro.exe], 'urllist' = [q[http://www.uberlan.net/CPAN/], q[http://cpan.digisle.net/]], 'wait_list' = [q[wait://ls6.informatik.uni-dortmund.de:1404]], 'wget' = q[], }; 1; __END__ ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Seemingly simple???
[EMAIL PROTECTED] wrote: Subject: Seemingly simple??? Hello, I have a small problem, which at first seems simple, but has proven to be a bit of a hair puller. A collegue and I are importing some windows formatted ascii files (onto our linux systems) and extracting certain string data. Simple enough. However, our problem is that some of the string data is terminated with what appears to be a windows carriage return..looks like this: If Windows eol then it is hex d followed by hex a, so you would need to change da to \n. What you could do is, ftp the data and it should handle the changes or open the file then do binmode(FILE) and then you chop twice and rewrite the output using std \n as part of the write. Wags ;) somestring^M anotherstring^M I tried chop(), but it does not seem to recognize that character. Any suggestions? Thanks, Dominic ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
autoload failing
Friends and neighbors, I'm getting an error during an autoload of a commercial module, Acrobat::FDF. Can't locate loadable object for module Acrobat::FDF in @INC (@INC contains ..) at ../Acrobat/FDF.pm line 721 Compilation failed in require at (eval 2) line 38. BEGIN failed--compilation aborted (in cleanup) Line 721 is the bootstrap line in FDF.pm, line 38 is the use Acrobat::FDF; in the calling script. We're using build 630 on the production server, 633 on the development server (I just learned Monday that they're not the same builds!), and it's not happening on the dev server. However, it does happen on individual developer machines running 633. All machines are Win2K (pro or server, as appropriate). This is a PerlScript ASP page in IIS 5.0. Now it happens that the error does not occur until another dll (another page) runs, and then the error occurs every time. This other dll is a VB6 COM wrapper for a non-COM C dll. The C dll has been profiled, and has no memory leaks. We're really stuck here; any ideas would be appreciated! Thanks, Joe == Joseph P. Discenza, Sr. Programmer/Analyst mailto:[EMAIL PROTECTED] Carleton Inc. http://www.carletoninc.com 574.243.6040 ext. 300fax: 574.243.6060 Providing Financial Solutions and Compliance for over 30 Years * Please note that our Area Code has changed to 574! * ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Seemingly simple???
Perl uses the line ending appropriate for the platform \r\n for dos \n for *nix and translates the print hey\n appropriately. You can do: $var =~ s/\r//; to remove the ^M but you probably want to look into setting the var $/ and use chomp. perldoc -f chomp chomp This safer version of chop removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module). It returns the total number of characters removed from all its arguments. It's often used to remove the newline from the end of an input record when you're worried that the final record may be missing its newline. When in paragraph mode ($/ = ), it removes all trailing newlines from the string. When in slurp mode ($/ = undef) or fixed-length record mode ($/ is a reference to an integer or the like, see perlvar) chomp() won't remove anything. a Andy Bach, Sys. Mangler Internet: [EMAIL PROTECTED] VOICE: (608) 261-5738 FAX 264-5030 Documentation is the castor oil of programming. Managers know it must be good because the programmers hate it so much. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs