uniq & sort (GNU apps) for Windows -- http://unxutils.sourceforge.net/

2004-05-10 Thread shawn_milochik
Just an FYI, after reading one of the posts in the digest I receive for this list. There are 121 GNU command-line apps for the Win32 environment. The download is a .zip file, about 3.2 megs. I hope some of you find joy in your Windows use with it. http://unxutils.sourceforge.net/ Including

Re: document creation. (HTML page breaks)

2003-08-14 Thread shawn_milochik
excellence_personified@

counting & sorting HTML tags

2003-08-14 Thread shawn_milochik
Hi. I'm still very much a Perl beginner, but I'm reading "Mastering Regular Expressions" by Friedl, so I expect to be able to at least help the group out with regexs when I'm a few more chapters in. ;o) I've just created a script which, when run like this: tags.pl filename.html Produces result

help make me more "perlish"

2002-10-31 Thread shawn_milochik
I have written a script which is very useful for me day-to-day. It checks table structure in HTML files. The script is working, but I would appreciate any comments, especially as to how this can be better written. Thank you, Shawn Code follows: ::

Perl on a Palm?

2002-10-24 Thread shawn_milochik
Does anyone know if it's possible to execute Perl scripts on the Palm OS? Does anyone here do any Palm OS programming of any kind? What free toolkit is available for it? Shawn ** This e-mail and any files transmitted with i

RE: Looking for some Documentation

2002-10-23 Thread shawn_milochik
Chris, I'm still new to Perl, but here's some code that writes to an Access database. Maybe it will be a starting point. You will need the module 'DBD::ODBC', which you can find at search.cpan.org, or, if you have ppm installed, run ppm and type "install DBD::ODBC". You will also need to set u

RE: How to run -- some notes

2002-10-23 Thread shawn_milochik
I have Active Perl installed on Windows 2000, and to run the script, I only need to type "script.pl". "perl script.pl" works also, but isn't necessary. On a Windows NT machine I have found that, when using the 'at' command to schedule a script, I can't use "perl script.pl" or it fails -- "script

Re: good text editor

2002-10-23 Thread shawn_milochik
Textpad (www.textpad.com) is great. It's not free, but it does have syntax highlighting and you can modify/create your own syntax rules. Multiple documents open at once, great find/replace and "find in files" features. If anyone knows of a free text editor with customizable syntax highlighting,

Re: LOCALTIME question

2002-10-22 Thread shawn_milochik
I think "net time" will return UCT, or Universal Coordinated Time, which used to be known as Greenwich Mean Time. If you were to just type "time" at the DOS prompt or "date" at the *nix prompt, the time should agree with LOCALTIME. Shawn

Re: truncation of decimal places.

2002-10-22 Thread shawn_milochik
t I fired this script right off as soon as I could test it. ;o) Shawn shawn_milochik@god ivachoc.com To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] 10/22/2002 02:41 bcc: PM Subject: Re: truncation of decimal places. Perhaps this is really clumsy, but maybe this will help. If not,

Re: truncation of decimal places.

2002-10-22 Thread shawn_milochik
could test it. ;o) Shawn shawn_milochik@god

Re: truncation of decimal places.

2002-10-22 Thread shawn_milochik
Perhaps this is really clumsy, but maybe this will help. If not, the others on the list will fix us right up. until (length($a) - index($a, '.') < 8){ $a = substr($a, 0, (length($a)-1)) } Shawn

Re: Single Quote marks in a string

2002-10-18 Thread shawn_milochik
Here is something for a very similar case: I am reading in lines from a file, and writing them into a database. Before I do, I do these two lines: $_ =~ s/\'/\''/g; #Replace any single quotes with a pair of single quotes. $_ =~ s/\"/\'/g; #Replace any double quotes with single q

Clarification on a previous e-mail.

2002-10-18 Thread shawn_milochik
Just a couple of questions about your corrections: (All snippets are taken from the e-mail below.) Shawn: > sub parseFrom400 { >

Re: How can I open and read two files at once in a loop?

2002-10-18 Thread shawn_milochik
In my case, both files had an equal number of lines. The both contained comma-separated values to be imported into database tables. One table needed two additional fields which were contained in the second table. I had intended on opening both and appending the two fields I wanted. In the end,

Re: How can I open and read two files at once in a loop? -- Thanks, and also here's a snippet someone may fine useful...

2002-10-18 Thread shawn_milochik
Japhy: Thanks very much for the answer. Everybody: I am working on a project which involves downloading files via FTP from an AS/400, and I had to write a couple of functions because of the weird way IBM does things. The first function takes a value, and dependent upon the final character, doe

parsing help (hex conversion, perhaps?)

2002-10-18 Thread shawn_milochik
I have a file which contains some hex data. When I unpack it using "H", it gives me what I want, almost. Original file: rtrates.rtrates Perl Script: rtrates.pl Results: rtrates.out What the results are supposed to look like: rtrates.txt The problem I'm having is that although the first two fi

How can I open and read two files at once in a loop?

2002-10-18 Thread shawn_milochik
I want to do something like this: open (FIRSTIN, "<$FIRSTINFile"); open (FIRSTOUT, ">$FIRSTOUTFile"); open (SECONDIN, "<$rtsalFIRSTIN"); open (SECONDOUT, ">$rtsalFIRSTOUT"); while (){ #assume $otherData would be the $_ from print FIRSTOUT "$_\n"; print SECONDOUT "$otherData,

Re: Using Perl to write to an Access 97 database (*.mdb)

2002-10-11 Thread shawn_milochik
" will not help this time. Thank you again, Shawn

Using Perl to write to an Access 97 database (*.mdb)

2002-10-11 Thread shawn_milochik
Is there a module for this? I have some comma-separated files I need to input to an Access 97 format mdb. I do not need to define any tables or anything -- just pump data into an existing structure. Thank you, Shawn ** Thi

Re: Odd and even numbers

2002-10-09 Thread shawn_milochik
$x++ if $x%2; This increments $x if $x is odd. Shawn robert.zielfelder@tycoelect

Re: Net::POP3

2002-10-08 Thread shawn_milochik
Thanks for the suggestions. I'm pretty new to Perl, as you can tell. I came from Javascript most recently, and (sorry) Visual Basic. I am a linux user and fan, although I'm writing this from work, where I have to use Windows. I mainly posted this script to try to help the person who posted a N

Net::POP3

2002-10-08 Thread shawn_milochik
I was just playing with Net::POP3 this past weeked. Here's a working script. It's not great, but I got the basics working, and you can mess with it. Shawn #|/-\||/-\||/-\||/-\||/-\||/-\||/-\||/-\||/-\| # Code #|/-\||/-\||/-\||/-\||/-\||/-\||/-\||/-\||/-\| #!/usr/bin/perl #use Net::FTP; use

Re: Perl to download files from an AS/400 running OS/400 -- to replace Rumba software

2002-10-03 Thread shawn_milochik
I have the file downloading fine using FTP. Now, I need to convert it from (I believe) binary into ASCII characters. I've been looking at 'binmode' and 'stat $filename', but I don't get a response from 'print "File is binary.\n" if -B;' and the 'binmode HANDLE' results in getting no output if I

Perl to download files from an AS/400 running OS/400 -- to replace Rumba software

2002-10-03 Thread shawn_milochik
Is there a Perl module which can be used to download files from an AS/400? We are currently using Rumba software, and we don't want to install it on the machine which we want to use for this project. The Rumba software allows us to create a .rto file, which tells the program the exact format we n

The Perl Journal Magazine -- any good?

2002-09-27 Thread shawn_milochik
Is this a good magazine for someone interested in Perl, or just for a hard-core user who uses it every day? Shawn ** This e-mail and any files transmitted with it may contain confidential information and is intended solely

code to parse out HTML tags

2002-09-27 Thread shawn_milochik
I have some code that I've been working on. I know it will be painfully obvious to you that I'm not very experienced yet with Perl, because I know I'm not taking advantage of the full text-processing power it has. What I want to do is to read an HTML file and find all occurrences of an unclosed

Re: general confusion...

2002-09-03 Thread shawn_milochik
I am a beginner, so list members -- correct me if I'm wrong here, but I think that the mathematical symbols (<>=) will only work with variables containing numbers. For strings, you have to use gt, lt, le, eq. Hope this is helpful. Shawn

Re: Printing perldocs

2002-08-27 Thread shawn_milochik
If you were to type: perldoc -f chomp to see the info you want, then try this: perldoc -f chomp > chompdoc.txt That will print the results to a text file, which you can read, print, etc. Shawn

Re: IDE's

2002-08-22 Thread shawn_milochik
Textpad, from www.textpad.com -- I use it for Perl, Javascript, ASP, Net.Data, text, etc. It has tons of features, allows you to have multiple documents open at once, sytax highlighting (and you can make your own syntax files), line numbers, and several other cool things. Shawn

Re: Regex to split router ifDescr up

2002-08-21 Thread shawn_milochik
Oops, I think you confused me with someone else. I did not ask this question. Shawn [EMAIL PROTECTED]

RE: SQL question

2002-08-20 Thread shawn_milochik
No. If you want to get the fields in a certain order from an SQL query, you MUST do: select fieldname, fieldname, fieldname from table As long as you're doing: select * from table You're always going to get the fields in the order in which they exist in the table. Shawn

Perl on the AS/400

2002-08-20 Thread shawn_milochik
We have an AS/400 here at work, and we use IBM's Net.Data macro language for server-side scripting. I've done some searching in the Net.Data forum, but I can't find documentation on how to set up Perl so that it can be called from Net.Data. A Net.Data function is written like this: %MACRO_FUNCT

Re: Is there a way to do cron on windows?

2002-08-20 Thread shawn_milochik
If you can write a Perl script to detect whether the program is running, then to start it if it isn't, then you can run the Perl script in a loop, using the 'sleep()' function to make it run every (up to you) seconds. Just be aware that, if you use Task Scheduler in Windows, you will need to sche

RE: comparing file dates from different servers

2002-08-20 Thread shawn_milochik
Oops. That was a typo. The script does not have this error. Shawn matt.wasserman@

comparing file dates from different servers

2002-08-20 Thread shawn_milochik
Hi. I'm new to Perl (just a couple of weeks). I'm trying to write a script which will check the date of a local file, compare it to a remote file (on another server on the same network), and copy the local over if it is newer. I'm currently using the 'stat' function. Here is part of the script