Re: Adding to multi-dimensional array dynamically via push...

2003-01-16 Thread R. Joseph Newton
push( @MyArray[ 0 ], 0 ); Hi Mike, I think you need to make up your mind who's doing the work here--you or Perl. The stack functions, push and pop, are intended to let the array handle its own organization, while you concern yourself only with the top element [ie the one most recently insert

RE: Adding to multi-dimensional array dynamically via push...

2003-01-16 Thread Liss, Mike
I have determined the correct methodology ( in my mind ) for the Particular problem... I have a bunch of data: $Array[ 0 ] = "some data 1"; $Array[ 1 ] = "some data 2"; $Array[ 2 ] = "some data 3"; And I have a function that sets some indices into My "Array" based on specif

Re: Splitting a variable

2003-01-16 Thread Jason Tiller
Hi, Joshua, :) On Thu, 16 Jan 2003, Scott, Joshua wrote: > I've got a CSV file which I need to process. The format is as follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried splitting it using: @row = spl

Re: Web Applications.

2003-01-16 Thread David T-G
Joe, et al -- ...and then Joe Echavarria said... % % Hi there, Hi! % % How can i execute a perl/cgi application with its % own web server ?, I want the user to be able to In general, you can't. This is a moderately common thread in the "I want to bundle my web site, scripts and all, o

help:how to hex2bin,bin2hex,bin2dec,dec2bin

2003-01-16 Thread billy
are there some commands or function? thanks for your response.

Re: Splitting a variable

2003-01-16 Thread R. Joseph Newton
"The problem is with the fields that contain the commas between the quotes" . Hi Joshua, Try: split (/\" *, *\"?/, $data) Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help:how to hex2bin,bin2hex,bin2dec,dec2bin

2003-01-16 Thread simran
perldoc -f pack perldoc -f unpack On Sun, 2038-01-17 at 12:55, billy wrote: > are there some commands or function? > thanks for your response. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help:how to hex2bin,bin2hex,bin2dec,dec2bin

2003-01-16 Thread billy
thanks! - Original Message - From: "simran" <[EMAIL PROTECTED]> To: "billy" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 10:11 AM Subject: Re: help:how to hex2bin,bin2hex,bin2dec,dec2bin > perldoc -f pack > perldoc -f unpack > > > On Sun, 2

Re: The number of elements in an array

2003-01-16 Thread John W. Krahn
Robert Monical wrote: > > At 01:12 AM 1/16/2003 -0800, you wrote: > > > >An array in scalar context return the number of elements in the array so > >you probably want: > > > > for ( my $x = 0; $x < @amen; $x++ ) { > > > >Or the more Perlish way: > > > > for my $x ( 0 .. $#amen

Re: Splitting a variable

2003-01-16 Thread R. Joseph Newton
"Try: split (/\" *, *\"?/, $data)" Sorry, scratch that plan. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multi-dimensional array foreach loop...

2003-01-16 Thread John W. Krahn
Mike Liss wrote: > > Ok, > > I think I am beginning to see the light... > but I am still in the dark on this one... > > How would I iterate over these arrays? > > $MyArray[0][0][0] = "A 1"; > $MyArray[0][1][0] = "comment 1"; > > $MyArray[0][0][1] = "A 2"; > $MyArray[0][1][1] = "Comment 2"; >

Finding IP address connected to your http server.

2003-01-16 Thread tyler
Hey, My friend is doing some web programming with perl, and wanted me to help him do something. He wants to create a script that will show all the IPs that are connected to the http server. I have looked on through several sites, and even a couple fo books I own. Yet I have failed to find a soluti

Re: Finding IP address connected to your http server.

2003-01-16 Thread simran
if (you are looking for connections that have come in over time) then look in the log file else if i you are looking for the ip that is current connecting to the cgi script you can usually find that info in the environment variable REMOTE_ADDR - $ENV{'REMOTE_ADDR'} else t

Re: Finding IP address connected to your http server.

2003-01-16 Thread Victor Tsang
how about using mod_status? it shows all the IP connected to the server. Tor. simran wrote: > > if (you are looking for connections that have come in over time) then > look in the log file > else if i you are looking for the ip that is current connecting to the cgi script > you c

<    1   2