Re: subs in while loops

2001-12-04 Thread Martin Pfeffer
another way will be to define $test as local so all subs called from the sub where is defined local $test has access to $test Martin On Mon, 3 Dec 2001 23:34:59 -0500 (EST), you wrote: >On Tue, 4 Dec 2001, Daniel Falkenberg wrote: > >> Hi All, >> >> while(1) { >> #Read from a sub outside of

Re: getting individual lines

2001-12-04 Thread Martin Pfeffer
Another way will be to read the statementlines into a hash and execute exact the ky you want Martin On Mon, 3 Dec 2001 20:17:36 -0500 (EST), you wrote: >On Mon, 3 Dec 2001, Tyler Longren wrote: > >> I have a HUGE document full of very simple SQL queries. Each query only >> takes up one line i

Re: Using CGI locally

2001-11-30 Thread Martin Pfeffer
but you can local install a webserver on localhost and do this On Thu, 29 Nov 2001 22:00:48 -0500 (EST), you wrote: >On Fri, 30 Nov 2001, Clive Lansink wrote: > >> I know that when I call up a local HTML file from within Internet >> Explorer it works and renders the HTML correctly. Now is there

CPAN usage

2001-11-30 Thread Martin Pfeffer
hi to all I has 2 questions 1. I has no internet connection at home and so i want to make a local copy of cpan Modules on my Fileserver. Where or why can i download this? 2. The downloaded mirror should be used with the cpan module where must i define the path to local mirror or how can i work

Cpan Modul creation

2001-11-28 Thread Martin Pfeffer
hi to all Does anyone know where i can find a documentation to make my Modul CPAN conform? I mean with makefile and and testscript and so on. I mean not perldoc makemaker. Thanx Martin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parameters

2001-11-28 Thread Martin Pfeffer
what kind of problem you hav ? martin On Tue, 27 Nov 2001 22:04:25 +0530, you wrote: >I'd like some help running single line programs from the command line with >the -e parameter. I keep having problems. > >Thanks. > >Pc > > > >_ >Do You Y

Has modul an error ?

2001-11-27 Thread Martin Pfeffer
Hi all I write the following code and he works fine : use DBI; my $dir = "/Webserver/www.xxx.at/martin/cgi-bin/test/"; my $dbh = DBI -> connect("DBI:CSV:") || die "$1 --- $DBI::errstr"; $dbh->do("CREATE TABLE testtablex (id INTEGER, name CHAR(64))"); my $sql = qq(insert into testtable values

Re: extracting *just* matched text

2001-11-21 Thread Martin Pfeffer
On Wed, 21 Nov 2001 09:49:19 -, you wrote: >hi, >how does one extract *just* the matched text in a regular expression, >e.g. > >my $text = "Hello 1234, come in"; >if ($text =~ /\d{4,4}/) >{ >#grab just the 4 digit number >} > >thanks $1 contains the text in () in secound () is $2 and

Re: Command Line arguments.

2001-11-21 Thread Martin Pfeffer
On Tue, 20 Nov 2001 23:50:54 -0500, you wrote: my @args = @ARGV; @ARGV contains the command line parameter. martin >In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Nicolae Popovici) wrote: > >> Hi guys, >> >> Can anyone tell me how can I take the command line arguments in a perl >> scri

Re: Profiler for Windows

2001-11-20 Thread Martin Pfeffer
sometimes you can see this in the readme file martin Gross, Stephan wrote: > Does dprof work on Windows? Does any profiler? How do you know from CPAN > if a module is windows compatible or not? > > ___ > Stephan Gross Loral Skynet

HTML::Templ - Error in Doc

2001-11-20 Thread Martin Pfeffer
hi to all! I found a error in documentation of HTML::Template my $filter = sub { my $text_ref = shift; $$text_ref =~ s/!!!ZAP_(.*?)!!!//g; } replace } with }; HERE IS ERROR after } semicolon missing! # open zap.tmpl using the above filter my $template = HTML::Templat

Re: using perl-command line not working

2001-11-20 Thread Martin Pfeffer
you must escape " this will work: perl -e "print \"@inc\";" by martin Moulas, Lionel wrote: > Hi. > First post here, simple question. > > Trying, under the msdos command line (WinNT, "cmd"), > perl -e ' print "@INC"' > > I get the message > Can't find string terminator "'" anywhere before E

Re: Help with global match and replace

2001-11-19 Thread Martin Pfeffer
$thestring =~ s/'/ /g; martin FLAHERTY, JIM-CONT wrote: > My script dumps file name into a mysql DB on redhat 7.1 linux . The problem > I have is sometime windows files has a single quote ( ' ) in the name. I > want to replace it with a space . I not strong on pattern matching in perl > yet >

Table

2001-11-09 Thread Martin Pfeffer
Hi to everybody I must create html Tables and sort them in different criterics (name, land, usw) My workaround is to create a temporary Table in database with the results of request and than i create from this different tables in html and let sql do the sorting. My question is if is there a b

Activ state Perl Dev Kit

2001-11-09 Thread Martin Pfeffer
does anywone has experience about Activ state Perl Dev Kit? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: installing modules

2001-11-09 Thread Martin Pfeffer
Install the CPAN Module Then type install Modulname Hope it helps martin Rahul Garg wrote: > well, > > i want to install modules on my system(linux) that i have made. > what i know is they are to be installed at @INC. > but exactly how.any suggestions > any sources for reading... > >

Re: is there another way to do this?

2001-11-08 Thread Martin Pfeffer
my $machine = $ENV{HOSTNAME}; martin Mark Johnson wrote: > Is there another way to get access to the environment variables... this > works, but it seems kind of kludgy.. > > my $machine = `echo \$HOSTNAME`; > > Also, is there a way to detemine whether the script is being executed by > roo

Re: Persisting Values Across Method Calls

2001-10-30 Thread Martin Pfeffer
you can create a object or use clouses. hope it helps Martin Rex Arul wrote: > Friends, > > How can I persist values across method calls, without using Global > Variables? IS there kind of "static" variables and if so can any of you > provide a simple code example to prove the point? > > Thank

Re: Regex frustration...

2001-10-24 Thread Martin Pfeffer
try to split the lines like: my ($var1, $var2,$var3,$var4) = split /:/, $line; # for every line of file than you can work with this as you like or you can split into array or in hash like this $hash{w1}{w2}{w3}{w4} = anything to control and than work with this hash Hope it helps Martin Daniel

Time Calculation

2001-10-24 Thread Martin Pfeffer
hi to all I hav a problem with GWT i use the following code: use DateTime::Precise; my $midnight = DateTime::Precise -> new(); my $day = $now -> day; my $month= $now -> month; my $year= $now -> year; $midnight -> set_from_datetime(qq($year.$month.$day 00:00:01)); $search_start = sp

Time - calculation

2001-10-24 Thread Martin Pfeffer
hi to all I hav a problem with GWT i use the following code: use DateTime::Precise; my $midnight = DateTime::Precise -> new(); my $day = $now -> day; my $month = $now -> month; my $year= $now -> year; $midnight -> set_from_datetime(qq($year.$month.$day 00:00:0