On Wed, 17 Sep 2003 20:33:00 -0800, Alejandro Chavarria - CyPage [EMAIL PROTECTED]
wrote:
Hey,
I have a script and I want to allow an administrator log on to it. Once
logged in they can change things... etc. Basically stuff I don't want
Two dimensional hash perhaps? Where the first column is the first dimension and the
second is, well, the second.
E.g.
while(FH)
{
($col1, $col2) = split(/$delimeter/, chomp($_));
$blah{$col1}{$col2} = 1;
}
Hope this helps.
Erwin Van Kouteren wrote:
Hi there,
I'm having problems with th einstallation of the module DBD::mysql. When
giving the command:
perl Makefile.PL the script gives error messages about de mysql_config
file. (no such file).
Can anyone help me any further on this matter?
Thanks,
Erwin
Thanks Michel, I found it!
But I just have one question before trying it out. Isn't the key order
in a hash randomised, which in this case means I wouldn't get first
column in numerical order as I wanted?
Marcus
On Thu, 2003-09-18 at 10:31, EUROSPACE SZARINDAR wrote:
Hi Marcus
Just look
Marcus Claesson [EMAIL PROTECTED] wrote
:
: I have a silly little list-parsing problem that I can't get
: my head around, and I'm sure some of you have come across
: it before.
:
: I have a list like this:
:
: 1 a
: 2 b
: 2 c
: 3 a
: 4 d
: 4 d
: 4 e
: 4 f
: 5
Homework's sorted ;)! Thanks a lot Thomas, it worked fine!
Marcus
On Thu, 2003-09-18 at 10:41, Thomas Btzler wrote:
Marcus Claesson [mailto:[EMAIL PROTECTED] asked:
I have a silly little list-parsing problem that I can't get my head
around, and I'm sure some of you have come across it
Marcus Claesson [EMAIL PROTECTED]
:
: But I just have one question before trying it out.
: Isn't the key order in a hash randomised, which in
: this case means I wouldn't get first column in
: numerical order as I wanted?
You didn't state what order in the problem not did
you say that the
On Thursday 18 Sep 2003 10:26 am, Marcus Claesson wrote:
Hi People,
I have a silly little list-parsing problem that I can't get my head
around, and I'm sure some of you have come across it before.
I have a list like this:
1 a
2 b
2 c
3 a
4 d
4 d
4 e
4
Hi,
I'm doing the following and the purpose is to genrate a HTML log file. But
the script says Can not apply stat : No such file or directory found
Can someone plz tell me where I'm going wrong ?
use File::Find;
use File::stat;
open (OUT,./out.html);
$Root = $ARGV[0];
print $Root;
my $var;
Hi,
This is wat I'm doing... but its not working :-(
find (\wanted,$Root);
print OUT ' /table
pnbsp;/p
/body
/html';
sub wanted()
{
if (-d $File::Find::name)
{
return;
}
$file = $File::Find::name;
$file =~ s/\//\\/g;
$st = stat($file);
$size = $st-size;
$size
Hi...
I was hoping to use Perl to invoke the MS utility diskpart to
script some disk management, especially in order to rename drives and
partitions.
Unfortunately, diskpart is an XP utility-- on Win2K, I can use
diskpart to strip the letter from the drive, but attempting to
Howdy:
I have a script where I connect from Oracle 9 to
PostgreSQL 7.2.x and insert new records. It seems
to work for about 200 or so records, but, fails
(I was able to capture this message)
[error]
Uncaught exception from user code:
Placeholder :0 invalid, placeholders must be = 1 at
Hi all,
I stumbled across something called BlueJ which provides a user-friendly
graphical environment in which to learn OO-programming, Java-style. I think
this is a great parallel universe to go along with the Perl Objects book.
I started re-writing one of the first exercises as a Perl package:
NYIMI Jose (BMB) wrote:
...
I was thinking about unpack function but how to make it dynamic ?
I mean writing :
my @items = unpack('A2 A2', $str);
Will work for $str='abdc';
Not for $str='abcdef';
How about something like:
my $s = 'abcdefghij';
my @x;
([EMAIL PROTECTED],$s) =
Stephen Hardisty wrote:
for(split(/(..)/, $string)) { print *$_ if $_; }
Gorgeous :o)
or,
@parts = grep length, split /(..)/, $string;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
I remember i read somewhere about some limitations of Net::SSH::Perl on
windows systems particularly something about 5.8
but can't find the link now.
Can anybody point me to it without much effort.??
Thanx,
-Sharad
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
But I'm wondering if there is another way
(like the Java private variable) to say
all class variables declared here are unique
to each instance?
It sounds like you are trying to link how OO-Perl works with OO-Java... and
that is only going to make your head spin. What you really need to do
John Birkhead wrote:
Hi,
I'm a perl newbie and I'm having problems getting CPAN connecting
and downloading on SuSE 8.2. I start with 'perl -MCPAN -e shell' but
the urlist is undefined. The default of 'ftp.perl.org' doesn't work.
If I 'o conf urlist push
In article
[EMAIL PROTECTED], Rob
Hanson wrote:
But I'm wondering if there is another way
(like the Java private variable) to say
all class variables declared here are unique
to each instance?
It sounds like you are trying to link how OO-Perl works with OO-Java...
and
that is only going
Not quite right Rob :)
Rob Hanson wrote:
But I'm wondering if there is another way
(like the Java private variable) to say
all class variables declared here are unique
to each instance?
It sounds like you are trying to link how OO-Perl works with OO-Java... and
that is only going to
On Sep 18, Bob Showalter said:
Stephen Hardisty wrote:
for(split(/(..)/, $string)) { print *$_ if $_; }
Gorgeous :o)
@parts = grep length, split /(..)/, $string;
WHY are we using split() for this? Why are we using a method that returns
a list twice the size that we want, that we then have
Hi!
I need to save some HTML text in a DataBase (MySql, using DBI). However
some HTML text will have single and double quotes, so.. how can I save
them?, for example:
align=centerIt's so funny/align
Thanks!
Pablo
--
Pablo Fischer Sandoval (pablo -arroba- pablo.com.mx)
http://www.pablo.com.mx
On Sat, 20 Sep 2003 21:34:58 +, Pablo Fischer wrote:
I need to save some HTML text in a DataBase (MySql, using DBI). However
some HTML text will have single and double quotes, so.. how can I save
them?, for example:
align=centerIt's so funny/align
$html_text =~ s/'/''/g;
$html_text =~
Hi All,
Is it possible to use module perl modules (let say DBD::Xbase) in java?
i'm sorry posting this java question to this perl forum,
because no body (able to) answer this question in java forum.
24 matches
Mail list logo