Author Topic: perl training wheels  (Read 3431 times)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #15 on: 23 September 2002, 08:15 »
You didn't read my corrections.  Look at the line right above that print line (the chop()) function has no semicolon at the end.  Just copy my code out and it should work.

If there is nothing wrong with the line that Perl complains about then usually the problem is on the line before it (missing semicolon etc). Or within a few lines above it.

[ September 22, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
perl training wheels
« Reply #16 on: 23 September 2002, 08:24 »
i read your post again before you posted and edited my message. I took out the line that checks for .allowmail since i am the only user on my server.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #17 on: 23 September 2002, 08:26 »
Well it's still not going to work without the semicolon after the chop() statement..
Someone please remove this account. Thanks...

Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
perl training wheels
« Reply #18 on: 23 September 2002, 21:08 »
Perl and Web design, just doesnt work, Im learning PHP4 whcih is the best Web development language i've seen. It can be inside HTML and executed by the server.

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
perl training wheels
« Reply #19 on: 23 September 2002, 14:03 »
i know, but the more strings one has to ones bow and all that.

So long as perl doesn't create any bad habits, i am happy to learn it prior to php...
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #20 on: 23 September 2002, 19:24 »
quote:
Originally posted by Ex Eleven / b0b:
Perl and Web design, just doesnt work, Im learning PHP4 whcih is the best Web development language i've seen. It can be inside HTML and executed by the server.


Heh heh, you're obviously on those mind altering drugs.  Perl is a *great* CGI language.  I do use PHP more than Perl now for web programming but there is nothing wrong with using Perl CGI programs.  You can use *any* language as a CGI program, even C and C++, even shell scripts.
Someone please remove this account. Thanks...

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #21 on: 23 September 2002, 19:29 »
quote:
Originally posted by Calum:
So long as perl doesn't create any bad habits, i am happy to learn it prior to php...


I program in both and love both. I used to use Perl exclusively for web programming. Now I just use it occasionally and use PHP whenever possible.  However, I still use Perl a lot for intermediate systems programming, that is, I use Perl where what I need done is a little bit much for a shell script.

I believe you are better off to know both languages and then use the one that makes the most sense when solving a task. If you know them both well, you'll know which one makes more sense when the time comes.
Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
perl training wheels
« Reply #22 on: 23 September 2002, 20:43 »
well in the meantime, (translation - haven't set apache up at home yet) i will upload my perl scripts to my calumsmusic.netfirms.com webspace where i have 24.5 Mb left and they have perl installed.

Only thing is, how do i chmod using ftp? (windows ftp at that), any idea? i currently do not have permission to view my new perl file when i view it via a browser as 'masses' or whoever.

Also, i tried to telnet in there to do this and no dice. That's not too good because i also wanted to do a 'which perl' to see if the path is correct in my text file. Can this be done using ftp as well?

the server itself is running Apache/1.3.26 (Unix) mod_perl/1.26 PHP/4.0.4pl1 mod_ssl/2.8.10 OpenSSL/0.9.6a on FreeBSD according to netcraft, but i do need to use windows to connect to the internet sadly.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
perl training wheels
« Reply #23 on: 23 September 2002, 20:46 »
type chmod 0755 /scripts/whatever.cgi when you are logged in the ftp server.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
perl training wheels
« Reply #24 on: 23 September 2002, 21:23 »
Invalid command


remember this is the windows ftp.exe i am using, i ftp into the site, logon and type chmod 0711 /cgi-bin/* and get Invalid command

so what now? I have an ftp GUI at homw called WS_FTP95LE which can chmod, and it runs on windows. how is this done? is it acting as a frontend to ftp, or has it been written with more functions in it that a standard windows ftp.exe?

thanks...
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #25 on: 24 September 2002, 00:00 »
Windows ftp.exe is not fully functional. The ftp server has the capability but if you don't use a client that is able to take advantage of that functionality then you will not be able to chmod.

Now, your web server does not allow telnet which is good but does allow ssh access?  Download putty.exe from http://www.openssh.org/ and try to connect to the server via ssh (make sure you click ssh in the putty logon because it also supports telnet by default).
Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
perl training wheels
« Reply #26 on: 24 September 2002, 00:33 »
no they don't seem to support ssh or rlogin either.

there's precious little actual technical info available on their website either ( www.netfirms.com  , they are really proud of now being able to support frontpage extensions...   :rolleyes:  ) however i cannot do this chmodding thing with ftp.exe and i thought that meant i could therefore not do it in windows however that turned out to be a pile of pants since i connected using ws_ftp95le (my GUI ftp client for windows) and hey presto, chmod is suddenly supported. so i used that.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
perl training wheels
« Reply #27 on: 24 September 2002, 00:36 »
ewwww, front page extensions...
Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
perl training wheels
« Reply #28 on: 24 September 2002, 00:45 »
http://calumsmusic.netfirms.com/cgi-bin/1stperlscript.cgi

that's where i have put the script. When i visit it with a browser i get a 500 error (it is mozilla 1.0 on WinME not that it matters) and the file's permissions are 755. I am flummoxed, the file exists because i tried taking out the cgi-bin/ part and i got a 404.
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
perl training wheels
« Reply #29 on: 24 September 2002, 01:10 »
i gots a 500 error too.... i dunno what to tell you.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'