On Wed, 2003-12-10 at 20:58, Joel Newkirk wrote:
On Mon, 2003-12-08 at 01:06, Joel Newkirk wrote:
Now I'm working on a console command to offer the same functionality
(only needing to read the rules, not write) using the same dbm. I've
used precisely the same subroutine as in the webmin
On Wed, Dec 10, 2003 at 02:26:40PM -0800 drieux wrote:
On Dec 10, 2003, at 4:39 AM, Ben Crane wrote:
Just sat done and put together my FIRST MODULE
It appears that perl5.8.1 rev of h2xs has some
minor changes:
[jeeves: 28:] h2xs -AX Wetware::Pid
Defaulting to backwards compatibility
Le jeu 11/12/2003 à 10:27, Ajey Kulkarni a écrit :
perl t.pl
Name main::FH used only once: possible typo at t.pl line 6.
cat t.pl
#!/usr/bin/perl
use strict;
use warnings;
open FH, out.dat;
Why am i getting this warning? When i remove the warnings,this goes off?
Is there any
On 12/11/2003 5:18 AM, John Hennessy wrote:
Hi, a basic question how do I know who called my subroutine ?
It could be main, it could be another subroutine.
Is setting a return value on a subroutine and checking for it the only way
? Surely not.
Thanks
John.
perldoc -f caller
--
To
Hi all,
Is there an easy function to apply an md5 to a string? (sha1 could also
do)
I've looked at the perl base functions and didn't find it but I would
like to avoid the use of modules as much as I can.
Thanks,
Yannick
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On 12/11/2003 5:41 AM, Yannick Warnier wrote:
Hi all,
Is there an easy function to apply an md5 to a string? (sha1 could also
do)
I've looked at the perl base functions and didn't find it but I would
like to avoid the use of modules as much as I can.
Thanks,
Yannick
Digest::MD5 Digest::SHA1
An obscure and probably (?) highly specific problem. When I install the
Apache/Perl (binaries for both Perl-5.6/Apache-1.0/mod_perl-1 and
Perl-5.8/Apache-2/mod_perl-2) from the ports page
(http://www.cpan.org/ports/index.html#win32), using setPalette in my pTk
programs works fine under XP
Hi,
Am Mittwoch, 10. Dezember 2003 21:19 schrieb Rod:
What is the easiest way to test the first 3 characters of two words for
a match.
IE: dasf test dasg to return positive.
rod.
# return true, if the words differ
return unpack( %32C3, $w1 ^ $w2 );
--
Boris
--
To unsubscribe, e-mail:
Hi -
giving my perl a retry, I found some hints on a website to recursively
replace text
perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name
'*.txt' )
this should replace old-atext with new-btext and
On Wed, 2003-12-10 at 22:07, Owen wrote:
On Mon, 08 Dec 2003 01:06:04 -0500
Joel Newkirk [EMAIL PROTECTED] wrote:
dbmopen (%PLRULES, /var/szs/rules.dbm, undef) or die $!;
I die, with No such file or directory.
No idea but;
I would tend to beleive the No such file or directory
On Wed, 2003-12-10 at 22:11, drieux wrote:
On Dec 10, 2003, at 5:58 PM, Joel Newkirk wrote:
[..]
whenever I reach:
dbmopen (%PLRULES, /var/szs/rules.dbm, undef) or die $!;
I die, with No such file or directory.
[..]
are you sure about that dbmopen() line?
eg:
perldoc -f
Dan Muey [EMAIL PROTECTED] asked:
I'm tryign to do a perl -e '' command and am wondering if it is
possible to do single quotes inside the single quotes.
perl -e print \joe's mama\n\;
perl -e 'print joe.chr(39).s mama;'
HTH,
Thomas
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Le jeu 11/12/2003 à 11:51, Randy W. Sims a écrit :
On 12/11/2003 5:41 AM, Yannick Warnier wrote:
Is there an easy function to apply an md5 to a string? (sha1 could also
do)
I've looked at the perl base functions and didn't find it but I would
like to avoid the use of modules as much as I
On Dec 10, George Georgalis said:
giving my perl a retry, I found some hints on a website to recursively
replace text
perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name
'*.txt' )
This isn't recursively replacing text; it's recursively going through a
directory
On Thu, 2003-12-11 at 05:51, Randy W. Sims wrote:
On 12/11/2003 5:41 AM, Yannick Warnier wrote:
Hi all,
Is there an easy function to apply an md5 to a string? (sha1 could also
do)
I've looked at the perl base functions and didn't find it but I would
like to avoid the use of modules
the following will not work:
$arrayref_one = $arrayreftwo; #it's just making a new name for the same
#reference.
the following works fine:
foreach my $a (0..$what){
foreach my $b (0..$why){
$arrayref_one-[$a]-[$b] =
I'm using the CPAN module to build my modules and have hung up just trying
install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:
command not found' error during make. My system uses gcc instead of cc, but
I'm not sure where to set this option. Tried setting the CC env setting
On Thu, Dec 11, 2003 at 09:05:20AM -0500, Jeff 'japhy' Pinyan wrote:
On Dec 10, George Georgalis said:
giving my perl a retry, I found some hints on a website to recursively
replace text
perl -p -i -e 's/old\(.\)atext/new\1btext/g;' $( find ./ -name '*.html' -o -name
'*.txt' )
This isn't
Thanks for all the suggestions everyone!
I'll keep playing around until I get it all ironed out.
Thanks!
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Hi
I am trying to do some thing like this, but am getting the wrong output. Can
somebody tell if my regular expression is wrong or not?
-Perl script---
$line = ABCXYZGwcTI\\ABCXYZIntValTI;
$line=~s/ABCXYZ(.*)TI/Hello$1/g;
print $line;
Hi,
glidden, matthew [EMAIL PROTECTED] asked:
I'm using the CPAN module to build my modules and have hung
up just trying install Bundle::CPAN. Installing Data::Dumper,
for example, shows a 'cc: command not found' error during make.
My system uses gcc instead of cc, but I'm not sure where to
On Dec 11, 2003, at 9:37 AM, West, William M wrote:
the following will not work:
$arrayref_one = $arrayreftwo; #it's just making a new name for the same
#reference.
the following works fine:
foreach my $a (0..$what){
foreach my $b (0..$why){
Try clone method of Storable module from CPAN.
There is also Clone module out there.
HTH,
José.
-Original Message-
From: West, William M [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 4:37 PM
To: [EMAIL PROTECTED]
Subject: copying complex data structures
the following
On Dec 11, Dan Anderson said:
Caveat Coder! Perl can be set up so that the @INC doesn't point to the
core modules. I have seen this on shared hosting, where (I assume) the
sys admin decided to use it as a way to secure the box.
Of course, if you use something like this:
BEGIN {
unshift
On Dec 11, 2003, at 4:14 AM, System Attendant wrote:
eManager Notification *
The following mail was blocked since it contains sensitive content.
Source mailbox: [EMAIL PROTECTED]
Destination mailbox(es): [EMAIL PROTECTED]
Rule/Policy: Racial Discrimination
Far be it from me to tell someone else how to configure their email
filter, but maybe they should think about putting the subject line of
the email in the automated response?
I wouldn't worry about it too much. If they're using the default word
lists it could be almost anything.
Hey all,
I have a file with some data that has like nested parens.. example
yes( hello goodbye
( (one 2) (two 3) (three 4)
)
(( mon 1) (tues 2) (wed 3)
)
((jan 1) (feb 2) (march 3)
)
)
I need help in trying to break this up and make key value pairs out of
the data
On Dec 10, 2003, at 11:35 PM, Tassilo von Parseval wrote:
On Wed, Dec 10, 2003 at 02:26:40PM -0800 drieux wrote:
On Dec 10, 2003, at 4:39 AM, Ben Crane wrote:
[..]
5.8.2's h2xs
[..]
in accordance with the preferred style of CPAN modules:
[EMAIL PROTECTED]:/tmp$ h2xs5.8.2 -b 5.6.0 -AX
On Thu, Dec 11, 2003 at 11:21:39AM -0500, Jeff 'japhy' Pinyan wrote:
On Dec 11, George Georgalis said:
On Thu, Dec 11, 2003 at 09:05:20AM -0500, Jeff 'japhy' Pinyan wrote:
On Dec 10, George Georgalis said:
giving my perl a retry, I found some hints on a website to recursively
replace text
perl
Saju Palayur wrote:
Hi
I am trying to do some thing like this, but am getting the wrong
output. Can somebody tell if my regular expression is wrong or not?
-Perl script---
$line = ABCXYZGwcTI\\ABCXYZIntValTI;
$line=~s/ABCXYZ(.*)TI/Hello$1/g;
Saju Palayur wrote:
Hi
I am trying to do some thing like this, but am getting the wrong output.
Can somebody tell if my regular expression is wrong or not?
-Perl script---
$line = ABCXYZGwcTI\\ABCXYZIntValTI;
$line=~s/ABCXYZ(.*)TI/Hello$1/g;
How does one specify the special tag :hireswallclock for Benchmark as mentioned here:
http://search.cpan.org/~nwclark/perl-5.8.2/lib/Benchmark.pm#:hireswallclock
TIA
DMuey
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Eric Walker wrote:
Hey all,
I have a file with some data that has like nested parens.. example
yes( hello goodbye
( (one 2) (two 3) (three 4)
)
(( mon 1) (tues 2) (wed 3)
)
((jan 1) (feb 2) (march 3)
)
)
I need help in trying to break this up and
On Dec 11, 2003, at 9:30 AM, Eric Walker wrote:
[..]
yes( hello goodbye
( (one 2) (two 3) (three 4)
)
(( mon 1) (tues 2) (wed 3)
)
((jan 1) (feb 2) (march 3)
)
)
[..]
The question of course is whether that 'ordering'
is important, or can you just use a hash?
IF you
How does one specify the special tag :hireswallclock for Benchmark
as mentioned here:
http://search.cpan.org/~nwclark/perl-5.8.2/lib/Benchmark.pm#:hireswallclock
TIA
DMuey
Remember this is open source, you can check yourself... incidentally it
appears that the tag is checked for in
On Thu, Dec 11, 2003 at 09:32:18AM -0800 drieux wrote:
On Dec 10, 2003, at 11:35 PM, Tassilo von Parseval wrote:
a decent META.yml is created and added to the distribution.
I'm still working out if i really 'get it'
about the 'yml' trend.
I haven't yet grokked it either. AFAIK it's one
On Dec 11, 2003, at 7:41 AM, glidden, matthew wrote:
I'm using the CPAN module to build my modules and have hung up just
trying
install Bundle::CPAN. Installing Data::Dumper, for example, shows a
'cc:
command not found' error during make. My system uses gcc instead of
cc, but
I'm not sure
Well, the problem is that this is just one section of a file the other
sections actualy have different format. When I get to this section I key
on the section name to know how to process it and will need to key on
the last paren know that this section is done and to try and key on what
the next
Howdy!
I'm creating some sql entries into a text file.
I'd like to use DBI's quote function without having to
connect to a database and without having to create my own!
Is that possible?
I've tried importing quote, doing DBI::quote, DBI::db::quote, and various versions of
that.
Any ideas?
George Georgalis wrote:
that's what I needed to hear... however replacing text (with memory
capturing) is still a problem:
perl -p -i -e 's/451(.)8229/331\12027/g;' $( find ./ -type f -name '*.html' -o -name
'*.txt' )
Hi George,
If you are going to do your regex work--especially at a
On Dec 10, 2003, at 11:34 PM, Joel Newkirk wrote:
[..]
I found my problem - apparently webmin was doing use GDBM_File; for
me, which is why it worked in the webmin module, and since I wasn't
including either that or the webmin web-lib.pl it was defaulting to a
different DB format, hence the File
Dan Muey wrote:
Howdy!
I'm creating some sql entries into a text file.
I'd like to use DBI's quote function without having to
connect to a database and without having to create my own!
Is that possible?
I've tried importing quote, doing DBI::quote, DBI::db::quote, and
various
--As off Thursday, December 11, 2003 12:53 PM -0600, Dan Muey is
alleged to have said:
I'd like to use DBI's quote function without having to
connect to a database and without having to create my own!
Is that possible?
--As for the rest, it is mine.
I would suspect it is not possible. You have
Bob Showalter wrote:
use DBI;
print DBD::_::db-quote('Hello');
perldoc -m DBI
this does not work, you need:
[panda]# perl -MDBI -le 'print DBD::_::db::quote(1,abcd)'
david
--
s,.*,,e,y,\n,,d,y,.s,10,,s
.ss.s.s...s.sss.s.ss
s.s.s...s...s..s
David wrote:
Bob Showalter wrote:
use DBI;
print DBD::_::db-quote('Hello');
perldoc -m DBI
this does not work, you need:
sorry. i am wrong. your version works as well.
david
--
s,.*,,e,y,\n,,d,y,.s,10,,s
.ss.s.s...s.sss.s.ss
s.s.s...s...s..s
On Dec 11, 2003, at 10:28 AM, Tassilo von Parseval wrote:
[..]
And since my attempts to get the specs for these META.yml failed,
I am the more happy that the latest EU::MakeMaker creates it for me.
[..]
Excuse me while I giggle UNCONTROLably ( yes, I know
that is read as 'screaming, in some
Hi all
there is probably a much better way of doing all this i am working on
the
checkResults sub.
it should find the pollerAudit log created by the main process
(discover) the file format for the log file is
pollerAudit.M.D.Y.h.m.s.lan (MDYhms being month day year hrs min sec)
but as we do not
Ok,, back to some laymen terms hehe...
The file is read by an application and what I am doing is this. The
application use to read this file that was created by hand to set some
internal settings. I a wrote a program to pull the same info from a
database. The auto generated file will ultimately
With the little amount of Perl that I know, I have come to a dilemma. I
do not know how to parse this file so in column 1 (24165) is the number
duplicate for every item number in the list. I also need in the 2
column (O185850) to duplicate itself for every item. The 3rd item
(05/30/03)needs to
On Dec 11, 2003, at 11:49 AM, [EMAIL PROTECTED] wrote:
[..]
there is probably a much better way of doing all this i am working on
the checkResults sub.
it should find the pollerAudit log created by the main process
(discover) the file format for the log file is
pollerAudit.M.D.Y.h.m.s.lan (MDYhms
I messed something up, for some reason my textarea is not saving the
text to a single line in the text file. I've got a standard text box
that users may hit the enter key to establish different paragraphs
within their post, however, for some reason it carries the CRLF down to
the variable and the
On Thu, Dec 11, 2003 at 11:07:53AM -0800, R. Joseph Newton wrote:
If you are going to do your regex work--especially at a high level--in Perl, it is
imperative that
you read the Perl documentation. The problem in the above sam[ple, or the one that
jumps out at me,
is that you are using the
At 20:45 11/12/2003, you wrote:
On Dec 11, 2003, at 11:49 AM, [EMAIL PROTECTED] wrote:
[..]
there is probably a much better way of doing all this i am working on
the checkResults sub.
it should find the pollerAudit log created by the main process
(discover) the file format for the log file is
I am currently invoking an ABAQUS (A finite element analysis package) analysis through
perl using the command -
system(/usr/local/bin/tcsh -c 'source /eng/local/lib/source/use -quiet
abaqus; /eng/tools/abaqus/6.3/Commands/abaqus job=$input_file');
where $input_file has a name like 'file.inp'
On Dec 11, 2003, at 12:16 PM, Eric Walker wrote:
Ok,, back to some laymen terms hehe...
not sure I can do that, but hey, I'll try anything once...
it seems that the two issues are
a. Parser Mechanics
b. File Format.
The file is read by an application and what I am doing is this.
On Thu, 2003-12-11 at 14:06, drieux wrote:
On Dec 10, 2003, at 11:34 PM, Joel Newkirk wrote:
[..]
I found my problem - apparently webmin was doing use GDBM_File; for
me, which is why it worked in the webmin module, and since I wasn't
including either that or the webmin web-lib.pl it was
On Dec 11, 2003, at 12:27 PM, Larry Sandwick wrote:
With the little amount of Perl that I know, I have come to a dilemma. I
do not know how to parse this file so in column 1 (24165) is the number
duplicate for every item number in the list. I also need in the 2
column (O185850) to duplicate
On Thu, Dec 11, 2003 at 12:17:03PM -0500, George Georgalis wrote:
btw - what's the best manpage for the perl command line options?
perlrun
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Thu, Dec 11, 2003 at 11:29:14AM -0800 drieux wrote:
On Dec 11, 2003, at 10:28 AM, Tassilo von Parseval wrote:
[..]
And since my attempts to get the specs for these META.yml failed,
I am the more happy that the latest EU::MakeMaker creates it for me.
[..]
Excuse me while I giggle
Le jeu 11/12/2003 à 16:19, Dan Anderson a écrit :
Caveat Coder! Perl can be set up so that the @INC doesn't point to the
core modules. I have seen this on shared hosting, where (I assume) the
sys admin decided to use it as a way to secure the box.
I don't get it. What would be my interest
On Dec 11, 2003, at 3:27 PM, Tassilo von Parseval wrote:
[..]
This is why Perl6 is on its way and promises to solve a lot of those
problems. Sometimes something functional has to be torn down in order
to
build something better.
[..]
Depending upon which day of the week it is,
I am either excited
Larry Sandwick wrote:
I know I can split the file on | but because the data is not
consistent and my skill set is limiting me to re-parse this file into a
file I can upload into MySql
Just Don't Do It.
This data is not ready for entry into a database. MySQL is an RDBMS engine,
and RDBMS is
drieux wrote:
Still think you should shoot who EVER came up with
the original file format...
HTH
ciao
drieux
Now, now, no need for violence. Perhaps seeking a commitment order, but no violence,
please!
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On Dec 11, 2003, at 8:00 PM, R. Joseph Newton wrote:
drieux wrote:
Still think you should shoot who EVER came up with
the original file format...
[..]
Now, now, no need for violence.
Perhaps seeking a commitment order,
but no violence, please!
p0: in light of your MOST EXCELLENT
RDBMS table lay
64 matches
Mail list logo