Halo all,
i want install perl at windows 2000, so what can i do ?
some body help me, step by step installation perl at windows 2000
Please.
Tx's
Best Regard's
Rosa
_
Get your FREE download of MSN Explorer at http://explorer.msn.c
Hi, I have a file like this:
.
# PXE Class
vendor-class "PXEClient" {
default-lease-time 1800;
max-lease-time 1800;
option dhcp-class-identifier "PXEServer";
filename "/bootp/linux/3.0/alize/startup.txt";
option vendor-encapsulated-options
Rosa malliber wrote:
> Halo all,
>
> i want install perl at windows 2000, so what can i do ?
> some body help me, step by step installation perl at windows 2000
http://www.activestate.com/Products/Download/Get.plex?id=ActivePerl&a=e
>
> Please.
>
> Tx's
>
> Best Regard's
> Rosa
>
> __
hi Rob,
I´ve got the same problem.
All perl-moduls installed from rpm (here yast from my SuSE-distrib does
the rpm-install) are not in the perllocal.pod.
Now I´m using for installations of my cpan loaded tar-moduls webmin
(made by Jamie Cameron look at www.webmin.com) and this works great!
Pete
On 8/4/02 9:15, "Tor Hildrum" <[EMAIL PROTECTED]> wrote:
> Here are some of the error messages I get:
> Use of uninitialized value in concatenation (.) at script.cgi line 55.
> Use of uninitialized value in concatenation (.) at script.cgi line 55.
> Can't open : No such file or directory
Full so
I would like to send an excel file (binary file) down a socket connection.
I'm at a loss as to how to do this. I've looked in a number of books
(O'reilly, Programming perl , Advanced Perl etc.) but haven't seen any
non-text examples. Can anyone tell me how I can do this?
Regards,
Paul
--
To u
On Mon, 08 Apr 2002 02:04:10 +0100, Troy May wrote:
> What's the easiest way to get yesterday's date from localtime? I need
> it in this format: (for today) "070402".
>
> Here is the code used for today's date:
>
> ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime();
> $mon++;
Hi All,
Can some one please look at my code ad see what I am doing wrong.
For some reason it is not working. The idea is to search the file using the
commandline argument. It is supposed to read the file and if a match is
found, it outputs to another file. If a match is not found is appends th
Arvind Baldeo wrote:
> Hi All,
>
> Can some one please look at my code ad see what I am doing wrong.
>
> For some reason it is not working. The idea is to search the file using the
> commandline argument. It is supposed to read the file and if a match is
> found, it outputs to another file. If a
On Mon, 08 Apr 2002 11:00:54 +0200, [EMAIL PROTECTED] (Tor Hildrum) wrote:
>On 8/4/02 9:15, "Tor Hildrum" <[EMAIL PROTECTED]> wrote:
>
>> Here are some of the error messages I get:
>> Use of uninitialized value in concatenation (.) at script.cgi line 55.
>> Use of uninitialized value in concatena
Arvind Baldeo wrote:
>
> Hi All,
Hello,
> Can some one please look at my code ad see what I am doing wrong.
>
> For some reason it is not working. The idea is to search the file using the
> commandline argument. It is supposed to read the file and if a match is
> found, it outputs to another
> I believe it is as simple as:
>
> $count = () = $string =~ /,/g;
I can't seem to get my brain around what's happening here... would
someone be kind enough to explain?
-dave
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
I'm trying to execute a stored procedure in my database from Perl.
I seen get only the first resultset from the procedure, not the rest (the procedure
returns 4 resultsets).
How do I do this?
I'm using the DBI::Sybase package. Is there any documentation on this package?
Rune
On Mon, 2002-04-08 at 09:39, Rune Hegrenes wrote:
> Hi
>
> I'm trying to execute a stored procedure in my database from Perl.
> I seen get only the first resultset from the procedure, not the rest (the procedure
>returns 4 resultsets).
> How do I do this?
>
> I'm using the DBI::Sybase package.
Go to http://www.activestate.com and download ActivePerl. Installing it
really doesn't take much.
1. Run the MSI file.
2. Keep all of the default installation options, unless you want to change
the directory it installs to, in which case click on the "browse" button
when you see it.
3. Clic
Another thing to remember is that declaring a variable with my() at the top
of your script does NOT make the variable global. It loses scope in
subroutines. The easiest way to get around this is to pass variables to
your subs by reference. Consider the example below, which passes a
reference
On Mon, Apr 08, 2002 at 03:39:34PM +0200, Rune Hegrenes wrote:
> I'm trying to execute a stored procedure in my database from Perl.
>
> I seen get only the first resultset from the procedure, not the
> rest (the procedure returns 4 resultsets).
>
> How do I do this?
>
> I'm using the DBI::Sybase
> Hi, I have a file like this:
>
> .
> # PXE Class
> vendor-class "PXEClient" {
> default-lease-time 1800;
> max-lease-time 1800;
> option dhcp-class-identifier "PXEServer";
>
> filename "/bootp/linux/3.0/alize/startup.txt";
> option vendor-encapsulate
On Monday, April 8, 2002, at 07:28 , Timothy Johnson wrote:
[..]
> If you just pass the value,
> then any operations performed on your variable in the subroutine will be
> destroyed when the sub exits. This way you will be performing all
> operations on the original variable, allowing you to cha
Hi,
I've got a file with a bunch of subroutines, wrapped up in a package. I can load up
the package from my main program (using lib), and access the subs in a foo::bar() kind
of way. But I'd like to access them just as bar(), i.e. import the symbols or
whatever. Problem is that the usual Expor
Hi Group
Which module should i use to do tasks like:
Determining the number of elements in a directory.
Making a new directory.
Deleting a directory.
Thanks in advance
--
Regards
Mayank
"The difference between ordinary and extraordinary is that little extra"
[EMAIL PROTECTED] wrote... Jonathan edited:
> package TestUtil;
Nope... not if you are using:
> use wcppe::TestUtil('test_msg');
in the script. They have to match.
The prefered way to write that use is:
use wcppe::TestUtil qw(test_msg);
since you can add extras in easily.
Jonathan Paton
> Which module should I use to do tasks like:
You don't have to...
> Determining the number of elements in a directory.
perldoc -f opendir
perldoc -f readdir
perldoc -f closedir
perldoc -f rewinddir
> Making a new directory.
perldoc -f mkdir
> Deleting a directory.
perldoc -f rmdir
but you
From: "Timothy Johnson" <[EMAIL PROTECTED]>
> Another thing to remember is that declaring a variable with my() at
> the top of your script does NOT make the variable global.
Right.
> It loses
> scope in subroutines.
Wrong.
If you declare a variable with my() its scope will be from the
decl
> > It loses
> > scope in subroutines.
>
> Wrong.
>
> If you declare a variable with my() its scope will be from the
> declaration to the end of the enclosing block. Which for variables
> declared outside any {} block or eval"" means ... to the end of the
> file.
>
Wrong.
You forgot abo
On Monday, April 8, 2002, at 06:24 AM, David Gray wrote:
>> I believe it is as simple as:
>>
>> $count = () = $string =~ /,/g;
>
> I can't seem to get my brain around what's happening here... would
> someone be kind enough to explain?
>
> -dave
$string =~ /,/g;
that finds all occurrences of
From: "Jonathan E. Paton" <[EMAIL PROTECTED]>
> > > It loses
> > > scope in subroutines.
> >
> > Wrong.
> >
> > If you declare a variable with my() its scope will be from the
> > declaration to the end of the enclosing block. Which for variables
> > declared outside any {} block or eval"" mea
Oops. My bad. I wonder how much extra work that one's cost me...
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 8:49 AM
To: Timothy Johnson
Cc: [EMAIL PROTECTED]
Subject: RE: Scope of variables. Lost in subs
From: "Timothy Johnson" <[E
On Apr 8, Jonathan E. Paton said:
>> Which module should I use to do tasks like:
>
>> Deleting a directory.
>
>perldoc -f rmdir
You might want to use the File::Path module (for the rmtree() function) to
delete non-empty directories.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www
Yep. I guess I'm still a little groggy. I think this whole "Spring
Forward" thing is a bit of a misnomer.
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 8:07 AM
To: [EMAIL PROTECTED]
Subject: Re: Scope of variables. Lost in subs
On Monday, Ap
Oops. I think that was DBD, not DBI.
-Original Message-
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 11:51 AM
To: 'Dan '; [EMAIL PROTECTED]
Subject: RE: Microsoft Access/Running program as a service on Win2k
To access (no pun intended) the Access dat
--- Jenda Krynicky <[EMAIL PROTECTED]> wrote: > From: "Jonathan E. Paton"
<[EMAIL PROTECTED]>
> > > > It loses
> > > > scope in subroutines.
> > >
> > > Wrong.
> > >
> > > If you declare a variable with my() its scope will be from the
> > > declaration to the end of the enclosing block. Whic
From: "Jonathan E. Paton" <[EMAIL PROTECTED]>
> Jonathan... nul point - my Eurovision song contest
> attempt would be less than that though. Yes, Jenda is
> right, and I'm wrong (again). Oh well, I do remember
> reading that.
A it feels so god to be right ;-)
And well ... I used to sin
I'm trying to write some queries to export MySQL information to a file,
and I'm a bit of a newbie. I'm querying the database for fieldnames,
and then field data. then I want to write the data to a file in a sort
of key:value format:
[fieldname]:[field data]
for example...
SKUID:AF332
NAME:Jes
On Mon, 2002-04-08 at 12:00, bob ackerman wrote:
>
> On Monday, April 8, 2002, at 06:24 AM, David Gray wrote:
>
> >> I believe it is as simple as:
> >>
> >> $count = () = $string =~ /,/g;
> >
> > I can't seem to get my brain around what's happening here... would
> > someone be kind enough to ex
On Monday, April 8, 2002, at 10:40 AM, Chas Owens wrote:
> On Mon, 2002-04-08 at 12:00, bob ackerman wrote:
>>
>> On Monday, April 8, 2002, at 06:24 AM, David Gray wrote:
>>
I believe it is as simple as:
$count = () = $string =~ /,/g;
>>>
>>> I can't seem to get my brain around
I have an array that contains some filenames that I wish to check for, however
I don't seem to be checking the array, at least not in the manner I expect
;-) Here's the relevant offending code:
my @lsLib = ("libListTree.a",
"libXpm.a",
"libfalk.a",
On Monday, April 8, 2002, at 11:21 AM, Michael D. Risser wrote:
> I have an array that contains some filenames that I wish to check for,
> however
> I don't seem to be checking the array, at least not in the manner I expect
> ;-) Here's the relevant offending code:
>
> my @lsLib = ("libListTre
On Mon, 2002-04-08 at 14:37, Randal L. Schwartz wrote:
> > "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
>
> >> There is no meaning for "list in a scalar context", so your statement
> >> makes no sense.
>
> Chas> my $some_scalar = () = /\s/g;
>
> Chas> I emphasize again, that is how I _r
Hello all,
Quick question about variables. I am editing a few scripts written by
another programmer and he programs every variable surrounded in brackets,
like ${var_name}.
Is there any advantage to this?
The only reason I can think that he is doing this is because of the module
that is
> $count = () = $string =~ /,/g;
> >>
> >> $string =~ /,/g;
> >>
> >> assigns the result in a list context - the anonymous list '()'. by
> >> assigning this to a scalar, $count, we get a value that is
> the size
> >> of the list, which is the number of matches that the regex
> made. that
On Monday 08 April 2002 11:46 am, bob ackerman wrote:
> On Monday, April 8, 2002, at 11:21 AM, Michael D. Risser wrote:
> > I have an array that contains some filenames that I wish to check for,
> > however
> > I don't seem to be checking the array, at least not in the manner I
> > expect ;-) Her
Perhaps he/she smoked lots of crack and had a hard time seeing the variables
and liked to use emacs for syntax highlighting. Or perhaps he/she had too
much crack and was confused if the script should really be a Makefile.
> -Original Message-
> From: Kevin Old [mailto:[EMAIL PROTECTED]]
>
Thanks to everyone who replied.
I got enough information to solve the problem, and then some more :)
Tor
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hay I have a Message Board and i have 2 subs:
1 for the actuall message baord and 1 for the posting of the entries to a text file.
Here is a basic example of what i have (I have not put the proper html and that in as
this message would be too long):
if ($in{'action'} eq "") {&default;}
elsif($i
"Michael D. Risser" wrote:
>
> I have an array that contains some filenames that I wish to check for, however
> I don't seem to be checking the array, at least not in the manner I expect
> ;-) Here's the relevant offending code:
>
> my @lsLib = ("libListTree.a",
>"libXpm.a",
I want to use the HTML::CalendarMonth module, and set some of the days of
the week as hyperlinks to another location. Replacing the comments with the
tag doesn't work, as it seems to escape the tag. Anyone done this?
-mike
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Kevin Old wrote:
>
> Hello all,
Hello,
> Quick question about variables. I am editing a few scripts written by
> another programmer and he programs every variable surrounded in brackets,
> like ${var_name}.
>
> Is there any advantage to this?
If you are interpolating a variable in a text str
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
Chas> With the downside that you have an array that you never use. Using ()
Chas> to force list context is one of those strange little quirks that you
Chas> just get used to. These days I read () as the array equivalent of
Chas> scalar().
probably he was following some kind of house standard or was used to doing
it that way with shell script, in which is a little more common.
the reason remains the same, you can see when the variable name starts and
stops, that's all.
> -Original Message-
> From: Kevin Old [SMTP:[EMAIL PR
Thanks! That did the trick, I *KNEW* there had to be a better way to do it, I
just didn't know what it was :-)
On Monday 08 April 2002 01:43 pm, John W. Krahn wrote:
> > sub check() {
> > my ($dir,@toCheck) = @_;
> > my $last = @toCheck;
> > my $i;
> > my $valid;
On Monday, April 8, 2002, at 12:09 PM, Michael D. Risser wrote:
> On Monday 08 April 2002 11:46 am, bob ackerman wrote:
>> On Monday, April 8, 2002, at 11:21 AM, Michael D. Risser wrote:
>>> I have an array that contains some filenames that I wish to check for,
>>> however
>>> I don't seem to
On Monday, April 8, 2002, at 12:15 PM, Randal L. Schwartz wrote:
>> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
>
> Chas> I emphasize again, that is how I _read_ it. I know that there is no
> Chas> array() and I know why, but that doesn't change how I read things.
> This
> Chas> hac
Hi guys
I was wondering if you could help me.
In my perl code, I am reading a file with the following line:
123000
There are 3 spaces before 123000.
I unpack the values into 2 variables, A and B
A is assigned the 3 spaces and B is assigned the value 123000.
I have another variable C which i
WinXp
Crashed my D: drive and I had most everything backup..
So when I reinstalled ActivePerl 5.6.xx I downloaded via PPM
(perl package installer) the DBI, DBIx::AnyDBD but could not find
DBD:mysql. Where is the package for Windows..
I did find, at CPAN, the mysql.gz.tar version which I use
On Monday, April 8, 2002, at 12:01 PM, Ho, Tony wrote:
> Hi guys
> I was wondering if you could help me.
> In my perl code, I am reading a file with the following line:
>
>123000
>
> There are 3 spaces before 123000.
> I unpack the values into 2 variables, A and B
> A is assigned the 3 spac
Try this
print NEW_FILE "$C'$A'$B";
-Paresh.
At 08:01 PM 4/8/2002 +0100, Ho, Tony wrote:
>Hi guys
>I was wondering if you could help me.
>In my perl code, I am reading a file with the following line:
>
>123000
>
>There are 3 spaces before 123000.
>I unpack the values into 2 variables, A an
This list is for beginners, right? =)
I read in a file, then strip all lines that start with "#" or "\n". When I
print them out, though, the first line is left justified correctly but the
rest have a single space in front of them. Any ideas why?
$file = "somefile.dat";
open (FILE, $file) ||
When you do a print, the default record separator used by Perl is a space.
When perl interpolates an array within a string, it places the record
separator between each record. If you take out the double-quotes around
@comments, you will get the output you are looking for.
-Original Message-
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
>> There is no meaning for "list in a scalar context", so your statement
>> makes no sense.
Chas> my $some_scalar = () = /\s/g;
Chas> I emphasize again, that is how I _read_ it. I know that there is no
Chas> array() and I know why, but tha
On Apr 8, Bryan R Harris said:
>I read in a file, then strip all lines that start with "#" or "\n". When I
>print them out, though, the first line is left justified correctly but the
>rest have a single space in front of them. Any ideas why?
The reason is because you did:
>print "@comments";
On Monday, April 8, 2002, at 05:10 PM, Bryan R Harris wrote:
> open (FILE, $file) || die("Couldn't open $file: $!\n");
> @_ = ;
> close(FILE);
> while ($_[1] =~ /^[#\n]/) { push(@comments, shift(@_)); }
> print "@comments";
seems unnecessary to create an array then print each element.
just p
Hello All,
Is it possible to parse form data from one CGI script to another one.
What I want to do is have a user login to a page. From their I the user
to select on a link then that link will take them to another CGI
script. In this new CGI script I need that to contain some information
of th
On Apr 8, Bryan R Harris said:
>$file = "somefile.dat";
>open (FILE, $file) || die("Couldn't open $file: $!\n");
>@_ = ;
>close(FILE);
>while ($_[1] =~ /^[#\n]/) { push(@comments, shift(@_)); }
>print "@comments";
This is a rather bizarre way to do this task, by the way. It also fails
in some
Hey all,
For any one that cares... :)
I simply told the hyperlink/submit button to point to the new CGI script
and parse on the data I wanted it to like so...
/cgi-bin/newcgi.cgi?data=$data
Very very easy!
Cheers,
Dan
On Tue, 2002-04-09 at 10:52, Daniel Falkenberg wrote:
> Hello All,
>
> I
Daniel Falkenberg wrote:
> Hello All,
>
> Is it possible to parse form data from one CGI script to another one.
> What I want to do is have a user login to a page. From their I the user
> to select on a link then that link will take them to another CGI
> script. In this new CGI script I need t
I had the following regular expression to get the extension from a file
name:
$extension = $filename;
$extension =~ s/(^.+\.)([^\.]+)$/$2/;
But it didn't work (in case the $filename didn't have an extension); so
I had to add the following line:
$extension = "" if (!$1);
What is wrong wit
rory oconnor [[EMAIL PROTECTED]] quoth:
*>I'm trying to write some queries to export MySQL information to a file,
*>and I'm a bit of a newbie. I'm querying the database for fieldnames,
*>and then field data. then I want to write the data to a file in a sort
*>of key:value format:
*>
*>and I gues
> "Chas" == Chas Owens <[EMAIL PROTECTED]> writes:
Chas> I emphasize again, that is how I _read_ it. I know that there is no
Chas> array() and I know why, but that doesn't change how I read things. This
Chas> hack forces the far left hand bit to return as a list (by making
Chas> wantarray r
I'm writing a small perl script that will help web users manage an
"account" (i.e. their record in a mysql table). I want to store their
password in a field, but I don't want to store it in regular text. I'm
not sure if this is a perl or MySQL function, but I think there is some
method of "encry
Bob T [[EMAIL PROTECTED]] quoth:
*>
*> Will someone point me to the Win module for DBD:mysql..
The CPAN FAQ, http://www.cpan.org/misc/cpan-faq.html, lists a number of
resources for ActivePerl modules.
e.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Ahmed Moustafa wrote:
>
> I had the following regular expression to get the extension from a file
> name:
>
>
> $extension = $filename;
> $extension =~ s/(^.+\.)([^\.]+)$/$2/;
>
>
> But it didn't work (in case the $filename didn't have an extension); so
> I had to add the following line:
>
>
Rory,
I would recommend using MySQL's buit in password() function:
INSERT INTO user ( username,password ) VALUES ( 'someuser', password(
'plaintextpasshere' ) );
SELECT ( username, password ) FROM user WHERE username='someuser' AND
password=password( 'plaintextpass' );
Regards,
Luke Davison
--
Folks,
A basic question about implementing user authentication by means of
CGI (and Perl if recommended):
I haven't found a script online or in a book that will do what I want
(see below). HTTP Basic Authentication doesn't provide for explicit
log-out. I'd rather not use cookies so users behi
Four Hewes wrote:
> My criteria:
>
> I. Account structure I want:
> unique user accounts
> users are members of groups (a la Unix)
> use of HTTP's ".passwd" is OK
>
> II. Platform I'd use:
> OS: Win, Unix, or Linux
> Server: Apache or IIS
> Dev.: MacPerl5
>
> III. Security of log-in:
> secure
Hi everyone
I have a situation here. I have to do it this way, becuase that's how the
framework is.
When I submit a form, it is processed by abc.cgi.
Now this abc.cgi has to be a frame. The main page is xyz.cgi, with a header,
a left frame and output of abc.cgi, as the right part of the frame pa
This is my two-bits on your question. I hope this helps.
Ex: ENCODE('str', 'password') str is the string of the chosen password and
password is the mySQL encryption password for encoding/decoding the password
string.
ENCODES returns a binary string and may be decoded with DECODE(). You
should
Hi Group
Can somebody help me in locating Tk::grid module? i couldn't find the
same on CPAN search site.
Thanks in advance.
--
Regards
Mayank
"The difference between ordinary and extraordinary is that little extra"
-Anon
--
T
78 matches
Mail list logo