Authen::SMB

2005-01-24 Thread ds10025
Morning Do anyone know where I can get information on how this module work? I've search the Internet nothing so-far. Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Authen::SMB

2005-01-24 Thread Tor Hildrum
On Mon, 24 Jan 2005 10:09:09 +, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Morning > > Do anyone know where I can get information on how this module work? I've > search the Internet nothing so-far. www.cpan.org would be a good place to start: http://search.cpan.org/~pmkane/Authen-Smb-0.91

Re: file and dir time stamps

2005-01-24 Thread Francesco
Thomas Browner ha scritto: I have a hard time writing a script that look at file and directories time and date stamp then delete any thing that is so many days old. if someone would give me a good starting point. Some time ago i had the same problem, so here what i came up with. This script inc

Logfile name

2005-01-24 Thread Jan Eden
Hi, I create monthly log files with names like statistics_01_2005.log. Now I have a function which returns the logfile name for the current month: sub statfile { my @date = localtime(time); my ($month, $year) = @date[4,5]; $year += 1900; $month = sprintf ("%02d", $month+1);

perltidy on windows - error

2005-01-24 Thread Absolut Newbie
When running perltidy on windows i get the following error. I uninstalled/reinstalled from PPM and looked at the perltidy site but no luck. Any ideas ? D:\Perl\bin>perl perltidy -b foo.pl Subroutine Cwd::cwd redefined at D:/Perl/lib/Cwd.pm line 518. Subroutine Cwd::getcwd redefined at D:/Perl/lib

matrix problem

2005-01-24 Thread manfred
Hi, I need to write an application to calculate prices. Some of these pricelists come as matrices where, say the pr/m2 depends on length and width like so: heigth\width||30|36 |42 |48 |54 |60 |72 |84 |96 |108|120| -

Re: How to find regex at specific location on line

2005-01-24 Thread Dave Gray
> 'plain_regex'=> sub { if ( $string =~ /^.{38}\|[BNPG]\|/ ) { > my $a = $_ } }, > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|N\|/ ) { my $a = $_ } > }, > > What was interesting to me was that although, predictably, the > substring/regex combo was consistently the best perform

RE: How to find regex at specific location on line

2005-01-24 Thread Jason Balicki
Thanks to everyone that answered this question. I ended up using (/^.{30}\|[BNPG]\|/). I plan on adding some more checks for "|" at specific locations (other than just ^ and $, which I have now) for sanity's sake. Thanks again. Would it be helpful to others if I were to post the complete script

RE: How to find regex at specific location on line

2005-01-24 Thread Graeme St. Clair
I knew what I meant, I just didn't write what I meant. Next time, I'll have a coffee first... Of course you're right I forgot to anchor it too. Rgds, GStC. -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Saturday, January 22, 2005 8:41 PM To: Perl Beginners Subj

Re: How to find regex at specific location on line

2005-01-24 Thread Jay
On Mon, 24 Jan 2005 10:46:38 -0500, Dave Gray <[EMAIL PROTECTED]> wrote: > > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|[BNPG]\|/ ) { > > my $a = $_ } }, > > 'plain_regex'=> sub { if ( $string =~ /^.{38}\|N\|/ ) { my $a = $_ > > } }, > > > > What was interesting to me was that

Problems installing Text-Iconv-1.4

2005-01-24 Thread Chris Brown
Hi. I'm trying to install a local copy of the W3C HTML Validator. I've managed to install all the pre-requisites apart from Text-Iconv-1.4 - I get the following error message: /[EMAIL PROTECTED] Text-Iconv-1.4]# perl Makefile.PL Checking for iconv ... ok (added -liconv) NOTE: If you have multipl

perl.beginners Weekly list FAQ posting

2005-01-24 Thread casey
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):

Program to read data from serial port, filter and process

2005-01-24 Thread Jason Balicki
Some people emailed me privately and asked that I do post what I've come up with to the list. I wrote this program over the course of the last week, starting with very little perl experience (I've modified others code, and small things like that) and acomplished a goal that prior to last week I co

unable to include .pm file

2005-01-24 Thread Mark Henry
All, going to try this one again, sorry..! --- Hi, I'm trying to use a perl module that a tool I got, ccmeter.pl, requires and I can't no matter what I do.. I'm on hpux11.11, and the script was written for 5.005_03 so thatÂ’s what I'm including at the top of the perl script ( #!/apps/perl-5.005_0

re: Splitting large file into little chunks based on tagging (example & script inc.)

2005-01-24 Thread FlashMX
Hi, I have a large file that I want to split into smaller chunks based on a start and end text (...) My script works only partially. It only saves the first occurence of my match and then closes the script. How can I get it to keep ripping throught the file saving into individual files. My file

RE: Naming Convention?

2005-01-24 Thread Graeme St. Clair
Thanks for the pointer to 'perlstyle' and 'Exporter'. I shall read, mark and inwardly digest. But I don't understand what you mean by C? (I'm already using strict & warnings.) Rgds, GStC. -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Saturday, January 22

RE: unable to include .pm file

2005-01-24 Thread Bob Showalter
Mark Henry wrote: > All, going to try this one again, sorry..! > > --- > > Hi, > > I'm trying to use a perl module that a tool I got, ccmeter.pl, > requires and I can't no matter what I do.. > > I'm on hpux11.11, and the script was written for 5.005_03 so that's > what I'm including at the top

tie DB_File flags

2005-01-24 Thread Ken Gillett
Information about these has proved hard to come by, but having ascertained what I need to use I find another problem. I want to calculate the flags to use beforehand, but if I try tie %$dbm, "DB_File", $dbf, $dbflags, $mode, $DB_HASH; even though $dbflags contains O_RDONLY I get the foll

Re: Logfile name

2005-01-24 Thread Owen
On Mon, 24 Jan 2005 14:31:53 +0100 Jan Eden <[EMAIL PROTECTED]> wrote: > Hi, > > I create monthly log files with names like statistics_01_2005.log. Now I have > a function which returns the logfile name for the current month: > > sub statfile { > my @date = localtime(time); > my ($month

Re: Problems installing Text-Iconv-1.4

2005-01-24 Thread mgoland
- Original Message - From: Chris Brown <[EMAIL PROTECTED]> Date: Monday, January 24, 2005 11:44 am Subject: Problems installing Text-Iconv-1.4 > Hi. Hi Chriss, > > I'm trying to install a local copy of the W3C HTML Validator. I've > managed to install all the pre-requisites apart from

perl script to binary executible

2005-01-24 Thread Manas Kulkarni
Hi, I would like to convert my perl script into a binary executable before deploying it on a client machine I checked on google and found "perlbin" at sourceforge.net but that does not seem to work. It gives compilation error with handy.h file which is the perl distribution file. Is there a w

RE: perl script to binary executible

2005-01-24 Thread Bakken, Luke
> I would like to convert my perl script into a binary > executable before > deploying it on a client machine > > I checked on google and found "perlbin" at sourceforge.net but that > does not seem to work. It gives compilation error with handy.h file > which is the perl distribution file. >

How to go back to a line and do something with it in an input fil e?

2005-01-24 Thread Li, Aiguo (NIH/NCI)
hello, all. I need to transform the column3 data from an input file as indicated below into three values: 0, 0.4, 1. if there are more than 3 NoCall continuously in column3, change NoCall into "1". this option has the highest precedence. for the rows where column2 is between 52 and 105 (range from

Re: perl script to binary executible

2005-01-24 Thread Alfred Vahau
so that the code is not seen by the client ? Is shroud any good? http://cpan.cbn.net.id/scripts/ Distributors of indigoperl provide a tool for doing what you want in Windows. Haven't tried it on Linux though. http://www.indigostar.com/ alfred, Manas Kulkarni wrote: Hi, I would like to convert my

Re: perl script to binary executible

2005-01-24 Thread Jay
On Mon, 24 Jan 2005 16:45:37 -0500, Manas Kulkarni <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to convert my perl script into a binary executable before > deploying it on a client machine > > I checked on google and found "perlbin" at sourceforge.net but that > does not seem to work. It giv

Splitting large file into little chunks based on tagging (example & script inc.)

2005-01-24 Thread FlashMX
Hi, I have a large file that I want to split into smaller chunks based on a start and end text (...) My script works only partially. It only saves the first occurence of my match and then closes the script. How can I get it to keep ripping throught the file saving into individual files. My file

How to tell what account I'm running in on Win2K3?

2005-01-24 Thread Siegfried Heintze
I've been having a terrible time soliciting [EMAIL PROTECTED] for help. Apparently I'm on the mailing list because I see other folks' postings but I never see my own messages post. I'm trying to send automated email from my web page and Mail::SendMail is scrambling the URL in my anchor tag. (Eve

Re: perl script to binary executible

2005-01-24 Thread Chris Devers
On Mon, 24 Jan 2005, Manas Kulkarni wrote: > I would like to convert my perl script into a binary executable before > deploying it on a client machine Why? If you want security, this won't get you much. This is a dead end, and also a Frequently Asked Question. It is basically not possible to

Re: perl script to binary executible

2005-01-24 Thread Lawrence Statton
> On Mon, 24 Jan 2005 16:45:37 -0500, Manas Kulkarni <[EMAIL PROTECTED]> wrote: . deletia . > > Is there a way to convert perl script to binary executable (linux > > platform) so that the code is not seen by the client ? > > This should be in the FAQ. The short answer is: *NO SYSTEM* whereby y

Re: Program to read data from serial port, filter and process

2005-01-24 Thread John W. Krahn
Jason Balicki wrote: Some people emailed me privately and asked that I do post what I've come up with to the list. I wrote this program over the course of the last week, starting with very little perl experience (I've modified others code, and small things like that) and acomplished a goal that pri

hash slice/exists vs. grep benchmark weirdness...

2005-01-24 Thread JupiterHost.Net
In benchmarking some code I've come across something I did not expect: slice: use strict; use warnings; my @k=qw(1 2 3 4 5 6); my %n;@[EMAIL PROTECTED] = @k; print "hi" if exists $n{1}; print "hi" if exists $n{3}; print "hi" if exists $n{5}; print "hi" if exists $n{7}; print "hi" if exists $n{9}; p

Re: Splitting large file into little chunks based on tagging (example & script inc.)

2005-01-24 Thread John W. Krahn
FlashMX wrote: Hi, Hello, I have a large file that I want to split into smaller chunks based on a start and end text (...) My script works only partially. It only saves the first occurence of my match and then closes the script. How can I get it to keep ripping throught the file saving into individ

Re: hash slice/exists vs. grep benchmark weirdness...

2005-01-24 Thread Lawrence Statton
> In benchmarking some code I've come across something I did not expect: > You have to stop spending so much time playing with all this bogus benchmarking :) > slice: > use strict; > use warnings; > my @k=qw(1 2 3 4 5 6); > my %n;@[EMAIL PROTECTED] = @k; > print "hi" if exists $n{1}; > print "h

RegExp equivalencies

2005-01-24 Thread Michael Kraus
G'day... Is: my ($id) = $item =~ /_(\d+)$/; Equivalent to: $item =~ /_(\d+)$/; $id = $1; Thanks heaps... -Mike Wild Technology Pty Ltd , ABN 98 091 470 692 Sales - Ground Floor, 265/8 Lachlan Street, Waterloo

Re: RegExp equivalencies

2005-01-24 Thread John W. Krahn
Michael Kraus wrote: G'day... Hello, Is: my ($id) = $item =~ /_(\d+)$/; Equivalent to: $item =~ /_(\d+)$/; $id = $1; No. In the first example my() creates a new variable $id and the result of the list returned from "$item =~ /_(\d+)$/" is assigned to it or an empty list (undef) if the pattern did