Is anyone aware of any WIN perl modules that can scan a directory and tell
you which file is being used by which process. Or all files opened by all
processes ??
Thanx in Advance,
Mark
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Please help!!! I'm trying to complete an assignment to determine the number
> of HTML tags within a string at each level of nesting. ie: for the string
>
> "abcde"
>
> is at level 0
> and are at level 1
> etc...
>
> My code is below. The pr
Please help!!! I'm trying to complete an assignment to determine the number of HTML
tags within a string at each level of nesting. ie: for the string
"abcde"
is at level 0
and are at level 1
etc...
My code is below. The problem is that apparently my RegEx is wrong (in the while
loop),
Please help!!! I'm trying to complete an assignment to determine the number
of HTML tags within a string at each level of nesting. ie: for the string
"ab"
is at level 0
and are at level 1
etc...
My code is below. The problem is that apparently my RegEx is wrong (in the
while loop), a
Please help!!! I'm trying to complete an assignment to determine the number of
HTML tags within a string at each level of nesting. ie: for the string
"ab"
is at level 0
and are at level 1
etc...
My code is below. The problem is that apparently my RegEx is wrong (in the
while loop)
Try
http://snake.cs.tu-berlin.de:8081/~schwartz/pmh/
Alfred Vahau
Uni. PNG
-
Has anyone seen a module that will help me output a document in
Microsoft
Word format? Any hint in the right direction will be greatly
appreciated.
Thanks,
Chris
--
To unsubscribe, e-mail:
I have a few ideas that may help:
Try making it so when page one loads the password form to fill out, it
includes a 'hidden' input type with a token value. (For this situation, it
won't matter that it is not really hidden when users view the HTML source if
your worried about that.)
What it woul
I know when you fork() a process the child is a duplicate of the parent, but
does the forked copy have the same priority and time slice assigned to it or
is it brand new?
Jessee
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 10/31, Gajo Csaba said something like:
> I've started learning Perl a few days ago, but I'm a
> computer science student, so I'm not a complete idiot
> :)
Do you really want to "sub print"?
> sub print
> {
> etc...
--
Shawn Leas
[EMAIL PROTECTED]
Right now I'm having amnesia and deja-vu at
Sorry, I left that part out... the install path is my home dir. perl Makefile.PL
PREFIX=/users/sean/MathSystem/
make
make install ..which errs when it tries to mkdir
/Library/Perl/darwin/auto/MathSystem/
Frank Wiles <[EMAIL PROTECTED]> wrote:
No you shouldn't need to edit the Makefile.PL.
.--[ sean finnigan wrote (2002/10/31 at 12:57:11) ]--
|
| Not being a Mac OS X user, is /System/Library/Perl the default
| library location?
|
| Perl -V #shows @INC to be:
|
| /System/Library/Perl/Darwin
| /System/Library/Perl
| /Library/Perl/Darwin
| /Libra
From: "Jessee Parker" <[EMAIL PROTECTED]>
> I am trying to use the Thread module but I get the following error:
>
> Can't locate Thread.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/s
I am trying to use the Thread module but I get the following error:
Can't locate Thread.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/
Howdy:
How do I access a DB/2 database from a perl script?
I have DB/2 version 6.1.1 on an MVS mainframe and I'm
trying to connect from a RedHat Linux box. I imagine that I
need the DBI modules, though.
What else do I need to connect to the mainframe database?
What syntax do I use?
Thanks!
-X
Not being a Mac OS X user, is /System/Library/Perl the default library location?
Perl -V #shows @INC to be:
/System/Library/Perl/Darwin
/System/Library/Perl
/Library/Perl/Darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/Darwin
/Network/Library/Perl
Do I need to edit the LIB ent
Not being a Mac OS X user, is /System/Library/Perl the default library location?
Perl -V #shows @INC to be:
/System/Library/Perl/Darwin
/System/Library/Perl
/Library/Perl/Darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/Darwin
/Network/Library/Perl
Do I need to edit the LIB ent
your right. My apolgies.
How is this:
printf("%-20s%5s %6s\n", $name, $in, $total);
might have to adjust somewhat, the first string is lef justifed with the
'-'.
> -Original Message-
> From: Nikola Janceski [mailto:nikola_janceski@;summithq.com]
> Sent: Thursday, October 31, 2002 2:48
Dear Jose,
thanks a lot for your solution. Also after burning my head I found my
own solution (shown below). However I if use the switch -w I got a
message saying "Use of uninitialized value at ..", I do not why.
cheers,
Pedro
#!/bin/perl -w
use strict;
my (@array, @array2, %hash, $i, $j, $key);
w
no, sorry did not know you were working on a linux box
> -Original Message-
> From: Chris Rogers [mailto:chris.rogers@;vifanusa.com]
> Sent: Thursday, October 31, 2002 3:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Looking for module
>
>
> Thanks, but that won't work on a linux box (wi
Thanks, but that won't work on a linux box (will it?)
-Original Message-
From: Kipp, James [mailto:James.Kipp@;mbna.com]
Sent: Thursday, October 31, 2002 2:30 PM
To: 'Chris Rogers'; '[EMAIL PROTECTED]'
Subject: RE: Looking for module
take a look at Win32::OLE. not sure but it is woth a l
First you will need to check if the record is already there
assuming FuelCrd is the unique value in the table (cardlock)
'SELECT FuelCrd FROM cardlock WHERE FuelCrd = $FuelCrd';
if the SELECT does return a value then the record is there.
In this case you will need issue an UPDATE statement
'UPDA
From: Robert Citek <[EMAIL PROTECTED]>
> At 12:04 AM 10/26/2002 +0200, Jenda Krynicky wrote:
> >From: Robert Citek <[EMAIL PROTECTED]>
> >> This sounds like something that perl should be able to handle by
> >> changing the locale so that you do not have to alter the source
> >> file.
> >
> >I hope
.--[ [EMAIL PROTECTED] wrote (2002/10/31 at 11:34:19) ]--
|
| Hello All,
|
| The Code in question:
| print "$name $in$total \n";
|
| Output:
|
| Jon Doe 12000 15
| Mr. Ihavealongname 15000 20
|
| I want it to look like this
|
| Jon Doe
printf()
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:bengleto@;calpoly.edu]
> Sent: Thursday, October 31, 2002 2:34 PM
> To: [EMAIL PROTECTED]
> Subject: howdo I make output from a print statement look pretty?
>
>
> Hello All,
>
> The Code in question:
> print "$name $in
I've just uploaded a new module to my pages at
http://Jenda.Krynicky.cz
It should help you create Windows services.
If your service only needs to wake up once every N minutes all you
need is to tell Win32::Daemon::Simple how to name it, what account to
install it under, what parameters you wa
actually it gives you an error :)
You misspelled variable!
You made a boo...boo
I know bad Halloween humor
If you set the examples...
you don't have to set the rules
Royce Wells
Unix Systems Engineer
let's suppose
$variable = "some text";
print "$v
Hello All,
The Code in question:
print "$name $in$total \n";
Output:
Jon Doe 12000 15
Mr. Ihavealongname 15000 20
I want it to look like this
Jon Doe 12000 15
Mr. Ihavealongname 15000 20
could you explain any solutions you might haveI'
use this querry
'update tablename set fieldname1=newvalue1,fieldname2=newvalue2 where
somefield=something'
- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 9:34 PM
Subject: SQL table updates
> Hello all,
>
> Can
u are trying to creat amulti dimentional array i guss but perl does not have
multi dymenctional arrays u will have to use referances (read perldoc
perlref)
here is an simpal exampal
my @table;
for ($c=1;$c<11;$c++){
my @ta;
$table[++$#table] = \@ta; #*** type "perldoc prelref"
Hello Aman,
That sounds like a problem with your browser but without more info and
some code samples, I can't offer further suggestions.
William
--
Lead Developer
Knowmad Services Inc. || Internet Applications & Database Integration
http://www.knowmad.com
--
To unsubscribe, e-mail: [EM
take a look at Win32::OLE. not sure but it is woth a look
> -Original Message-
> From: Chris Rogers [mailto:chris.rogers@;vifanusa.com]
> Sent: Thursday, October 31, 2002 2:18 PM
> To: '[EMAIL PROTECTED]'
> Subject: Looking for module
>
>
> Has anyone seen a module that will help me outp
.--[ Gajo Csaba wrote (2002/10/31 at 20:19:43) ]--
|
| While I'm at silly questions, I guess I could ask this one
| too: what is the difference between a " " and a ' '. I have
| a book that explains it to me in one sentence, and I don't
| understand one word that the author's
let's suppose
$variable = "some text";
print "$variable\n"; # prints: some text
print '$varibale\n'; # prints: $variable\n
get it?
double quotes interpolate - expands variables and special characters.
single quotes do not interpolate - it's all just plain text don't think of
them as variables
.--[ sean finnigan wrote (2002/10/31 at 11:20:20) ]--
|
| Permission denied at /System/Library/Perl/ExtUtils/Install.pm line 62
| Error 255
|
| .--[ sean finnigan wrote (2002/10/31 at 07:58:48) ]--
| |
| | make install
| |
| | and I get an error if I'm not l
Permission denied at /System/Library/Perl/ExtUtils/Install.pm line 62
Error 255
Frank Wiles wrote:.--[ sean finnigan wrote (2002/10/31 at 07:58:48) ]--
|
| make install
|
| and I get an error if I'm not logged in with admin rights...
|
| What change do I need to put in Makefile.PL
While I'm at silly questions, I guess I could ask this one
too: what is the difference between a " " and a ' '. I have
a book that explains it to me in one sentence, and I don't
understand one word that the author's using (I suck at
English), so could someone explain it to me? An example
would
Has anyone seen a module that will help me output a document in Microsoft
Word format? Any hint in the right direction will be greatly appreciated.
Thanks,
Chris
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
At 12:04 AM 10/26/2002 +0200, Jenda Krynicky wrote:
>From: Robert Citek <[EMAIL PROTECTED]>
>> This sounds like something that perl should be able to handle by
>> changing the locale so that you do not have to alter the source file.
>
>I hope NOT! This would break tons of modules!
Perhaps. But t
>>>That figures... I always use su when i type make install.
>>>Can't you do the same?
Yes, but this is part of an devtool want to ship for MacOSX Cocoa folks. The idea of
expecting the users of a Cocoa application to know anything about the Unix back-end to
MacOSX is quite possibly beyond th
Try this:
#!/usr/bin/perl
use strict;
my $file=$ARGV[0];
open(FH,"$file") || die "can not open file named $file for reading\n";
#Init stuff
my $current_line=;
my ($from,$prev_key)=split /\s+/,$current_line;
my $prev_to=$from;
#Go
while($current_line=){
my ($current_to,$current_ke
I have a search on my webpage.
I put in keyword and press enter - the value in the textbox is not carried
over, though the search.pl is executed.
But if I press the Submit button, it works with the entered keyword.
I want the to work too - it works on the login page.
I wonder what could be the pro
and the @INC is only for runtime, nothing to do with paths at install time,
correct? Mucho apreció, amigo.
Frank Wiles <[EMAIL PROTECTED]> wrote:.--[ sean finnigan wrote (2002/10/31 at
07:58:48) ]--
|
| make install
|
| and I get an error if I'm not logged in with admin right
open(FH,"your_file.txt") || die $!;
my @tmp = readline(*FH); #this will read each line in your file
my @second_row = split(/,/,join('',$tmp[1]),"\n"); #just look at the
second row
print($second_row[2]); #third element in array
close(FH);
-Original Message-
From: [EMAI
Correctition: record number should be 1 not 0
try this version:
open (F, "$file") or die "can't open $!\n";
while ($line = ) {
next if $. == 1; # first line is skipped
# do stuff with next line
}
> -Original Message-
> From: Kipp, James
> Sent: Thursday, October 31, 200
open (F, "$file") or die "can't open $!\n";
while ($line = ) {
next if $. == 0; # first line is skipped
# do stuff with next line
}
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:Charles.Belcher@;mercantile.net]
> Sent: Thursday, October 31, 2002 12:22 PM
> To:
I have a file that looks like
0
232,32387,2323
I am only interested in the last set of digits on the second line. My plan
was to split on coma and take the 3 element of the array. I am having problems
skipping the fist line. Any assistance would be appreciated.
Chuck Belcher
Hi all, I have been struggling with the following problem. I have a file
that looks as it follows:
5 .
6 .
7 H
8 H
9 H
10 E
11 E
12 .
13 .
and I want to write something like this:
from 5 to 6 .
from 7 to 9 H
from 10 to 11 E
from 12 to 13 .
At 08:06 AM 10/31/02, you wrote:
One way.
? Of the 3 fields which is unique field..I'll assume FuelCrd..
after ..print "$FuelCrd, $TrkID, $FuelCmp\n"; .insert
this
my ($check) = $dbh->selectrow_array ("SELECT fuelCrd FROM cardlock WHERE
fuelCrd = ?", undef,$F
.--[ sean finnigan wrote (2002/10/31 at 07:58:48) ]--
|
| make install
|
| and I get an error if I'm not logged in with admin rights...
|
| What change do I need to put in Makefile.PL such that files won't
| get copied to '/Library/Perl/Darwin' by 'make install' , but i
make install
and I get an error if I'm not logged in with admin rights...
What change do I need to put in Makefile.PL such that files won't get copied to
'/Library/Perl/Darwin' by 'make install' , but instead just go (stay) in current dir?
-
Do you Yahoo!?
> -Original Message-
> From: Gajo Csaba [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 31, 2002 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: A very, very simple question
>
>
>
> Hi,
> I've started learning Perl a few days ago, but I'm a
> computer science student, so I'm not a compl
>
> is how I read this
> | statment:
> | seek(FH,(-s "foo.txt")-2,0);
> |
> | seek back 2 bytes from the end of the file ?
> |
> >
> Actually when the third argument ( aka WHENCE ) is set to zero it
> means "Set the new position to the second argument". So it's not
> sayi
Hello all,
Can anyone tell me how to make this code work, so that, if the record
already exists, just update the values instead of creating a new record?
open(InFile, "fuelcrd") || die "Can not open file: $!\n";
while(){
chomp;
my ($FuelCrd, $TrkID, $FuelCmp) = split(/,/,$_);
Hi,
I've started learning Perl a few days ago, but I'm a
computer science student, so I'm not a complete idiot
:)
This is the problem: I'm trying to make a simple 2D
matrix that represents the product of the numbers 1-10
(don't know how to tell it in English, it's that table
that kids learn when
.--[ Kipp, James wrote (2002/10/31 at 09:53:10) ]--
|
| Thanks. I looked throught Programming perl but did not find much. Ok, I see
| i misread the statement and ther are only 3 params. Here is how I read this
| statment:
| seek(FH,(-s "foo.txt")-2,0);
|
| seek back 2 bytes
I am having trouble updating a row in an access table.
The code below updates the table will the version and update level, however,
I only want to update the row if it exists in the first table? My code
updates every record in the second table.
Please help?
D:\\cats\catversion.mdb
MMBFILT
Thanks. I looked throught Programming perl but did not find much. Ok, I see
i misread the statement and ther are only 3 params. Here is how I read this
statment:
seek(FH,(-s "foo.txt")-2,0);
seek back 2 bytes from the end of the file ?
> -Original Message-
> From: Frank Wiles [mailto:fran
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:
::
.--[ Kipp, James wrote (2002/10/31 at 09:28:23) ]--
|
| Where can i find more info on seek(), perldoc does not tell me much. it only
| list 3 parameters, where David uses 4 in this code? what do negative values
| in the offset represent?
|
| > seek(FH,tell(FH)-2,0);
|
Where can i find more info on seek(), perldoc does not tell me much. it only
list 3 parameters, where David uses 4 in this code? what do negative values
in the offset represent?
Thanks
>
> #!/usr/bin/perl -w
> use strict;
>
> my @character;
> my @lines;
> open(FH,"foo.txt") || die $!;
> seek(FH
Hi!
I just setup a new server with solaris 8 and installed perl5.6.1 and all
seems to be working great except that I get the following error:
DBD::Oracle initialisation failed: Can't locate auto/DBD/Oracle/ORA_OCI.al
in @INC (@INC contains:
/export/home/kthmgr/lib/perl5/site_perl/5.6.0/sun4-solar
NAME
beginners-faq - FAQ for the beginners mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to <[EMAIL PROTECTED]>
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email address):
I've installed perl 5.8.0 on Win2000 machine.
Then I downloaded DBI-1.30 from cpan.org website.
when I executed
C:\path\to\DBI-1.30> perl Makefile.PL
C:\path\to\DBI-1.30> nmake
When it was compiling Perl.c it first gave error: "The dynamic link library
mspdb60.dll could not be found in the specifi
Hi;
When you execute perl script on terminal window (on Linux Redhat),
can we print texts on different colors and be able to set font and its
size?
Thanks. Best regards...
***
Bu elektronik posta ve onunla iletilen bütün dosyalar
From: Goodman Kristi - kgoodm <[EMAIL PROTECTED]>
> The newest one (0.7.14.1) but I tried it with an older version
> (0.7.06) and I did not get that error.
>
> So I guess I will just use the older one. :-)
Seems I am crazy. Please change the line 55 in Sender.pm from
my
Hi,
try: which perl
at the command prompt, it will reply something like
/usr/bin/perl (the path to perl executable)
then get sure the first line in checkit.pl is
#!/usr/bin/perl -w
or whatever the which command reply.
Regards.
Karin Friberg a écrit :
>
> Hi there!
>
> When I run my perl program
on Thu, 31 Oct 2002 03:54:23 GMT, [EMAIL PROTECTED] (George Georgalis)
wrote:
> and in the middle of a form, I want to run some code to generate
> some monotonous stuff.
>
> start_form,
> 'Name: ',textfield('name','',55),br,
> 'Phone/Fax: ',textfield('phone','',55),br,
>
on Thu, 31 Oct 2002 08:22:08 GMT, [EMAIL PROTECTED] (Karin
Friberg) wrote:
> When I run my perl program I get:
>
> bash: ./checkit.pl: bad interpreter: No such file or directory
>
> What does that mean?
Check your #! line at the top of your program. Does this point to a
valid Perl interpreter
on Wed, 30 Oct 2002 19:48:24 GMT, [EMAIL PROTECTED] (Guy
Davis) wrote:
> I am calling another perl script and it has failed occasionally
> from errors that I have not yet tracked down. What I want to do is
> grab and store the process id. Then check to see if that process
> id is still running at
Hi there!
When I run my perl program I get:
bash: ./checkit.pl: bad interpreter: No such file or directory
What does that mean?
Thanks
/Karin
Hi -
I'm learning
use CGI qw/:standard/;
and in the middle of a form, I want to run some code to generate some
monotonous stuff.
start_form,
'Name: ',textfield('name','',55),br,
'Phone/Fax: ',textfield('phone','',55),br,
'Address: ',textarea('addr','',5,35,20),b
You can create an ODBC connection to your Access database and use the
Win32::ODBC module.
-Original Message-
From: Jerry Preston [mailto:g-preston1@;ti.com]
Sent: Wednesday, October 30, 2002 3:20 PM
To: Beginners Perl
Subject: ms access & perl
Hi!!
Is it possible to access MS access fr
The newest one (0.7.14.1) but I tried it with an older version (0.7.06) and
I did not get that error.
So I guess I will just use the older one. :-)
-Original Message-
From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz]
Sent: Wednesday, October 30, 2002 3:06 PM
To: '[EMAIL PROTECTED]'
Subje
Dan, you might want to post the line in which you call config.cgi.
Are you using 'require'?
cheers,
scott
-Original Message-
From: Palm Optins [mailto:bootscat@;bellsouth.net]
Sent: Wednesday, October 30, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: Mail Problem
Importance: High
Hello E
74 matches
Mail list logo