Re: What am I doing wrong... I want to increment a number in a DB

2002-06-03 Thread Adam Morton
>> Some where it resets back to zero all the time You do "foreach $row", then you set all of your variables to pieces of "@$rows". Note the trailing 's'. Typo strikes again. All of those values are probably undefined, since I assume "$rows" is undefined, thus they get inserted as 0 or ''. Simp

Re: Reading RGB Values of Pixels in Images

2002-05-29 Thread Adam Morton
You want to "read the RGB pixel values from them and write these to a file"? As was already pointed out, that is already what is in the file for some graphics formats! What is it you are actually trying to accomplish here? Maybe you just want to use imagemagick on the command line to convert your

Re: Links to randomly-accessed html pages

2002-05-29 Thread Adam Morton
A better approach would be to have a static 'left' frame that links to a CGI that redirects to a random page. Like so: This Link And then "RandomPage.cgi" just has to pic a random page, and return a redirect header to that page. - Original Message - From: "Rohesia Hamilton Metcalfe" <[E

Re: hard references vs. variables

2002-05-23 Thread Adam Morton
- Original Message - From: "drieux" <[EMAIL PROTECTED]> > the variables on the left are 'softish references' to other things .. . . > not a reference but the thing in itself... > what I think you are calling 'hard reference'(). I believe 'soft references' in perl refers to the pra

Re: passing array-ref from sub to sub

2002-05-17 Thread Adam Morton
- Original Message - From: "Jackson, Harry" <[EMAIL PROTECTED]> > > -Original Message- > > From: [EMAIL PROTECTED] > > > > > > > > > use strict; > > > > my $link_id = ''; > > my $link_attr_entry_list_ref = ''; > > The var above is in the package::main name space. Are you saying

Re: reading multi-line into an array

2002-05-14 Thread Adam Morton
Since this is a beginners list, I guess someone (i.e. me) should point out that perhaps the simplest way to read an array from STDIN is to do something like: @theseLines = ; This will by default add one array entry per line of user input until the user enters a cntrl-d. Of course, if you are st

Re: lynx

2002-05-07 Thread Adam Morton
Well, if the web page is already in an acceptably readable form, you don't need perl at all (gasp!) if you use lynx. Just a contab entry and a pipe to a mailer. - Original Message - From: "Jonathan E. Paton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 1:44 PM

Re: Parameters

2002-05-03 Thread Adam Morton
> On Thursday, May 2, 2002, at 12:32 , Josef E. Galea wrote: > > > How can I pass parameters (eg: a file name) to a Perl script So, we've covered the nice, general, modular way to do it, but no one so far has mentioned the quick and dirty way. If you want to specify a file name for purposes of

Re: Calculating Last Login on Unix

2002-04-29 Thread Adam Morton
> On Monday, April 29, 2002, at 10:58 , [EMAIL PROTECTED] wrote: > [..] > > ipl of the server and therefore nulls wtmp > [..] > > good God Man! no one uses 'ipl' - it will scare the kiddies Is this, like, ancient IBM speak for "reboot"? IPL = "initial program load"? > That gives me the info

Re: Pinging

2002-04-25 Thread Adam Morton
You can't 'ping a specific port' ping is an IP tool, and ports do not show up until the TCP/UDP level of your seven layer dip. Do some research on ICMP for more info. If you want to know if a service that uses a specific port is responding, you will have to make some valid request using whatever