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
excellence_personified@
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
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:
::
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
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
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
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,
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
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,
could
test it. ;o)
Shawn
shawn_milochik@god
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
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
Just a couple of questions about your corrections: (All snippets are taken
from
the e-mail below.)
Shawn:
> sub parseFrom400 {
>
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,
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
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
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,
" will not help this time.
Thank you again,
Shawn
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
$x++ if $x%2;
This increments $x if $x is odd.
Shawn
robert.zielfelder@tycoelect
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
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
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
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
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
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
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
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
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
Oops, I think you confused me with someone else. I did not ask this
question.
Shawn
[EMAIL PROTECTED]
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
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
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
Oops. That was a typo. The script does not have this error.
Shawn
matt.wasserman@
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
36 matches
Mail list logo