Re: How to display database records in a web page !!!!

2006-03-06 Thread gustav
there! Seems to me it is something do to with the newline \n - statement Some operatingsystems do need \r\n instead of only \n Best regards /Gustav Wiberg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

Re: Why glob() ?

2005-11-14 Thread Gustav Wiberg
: Monday, November 14, 2005 7:36 AM Subject: Re: Why glob() ? Gustav Hi there! Lo Gustav ps. I don't have the manual or Perl installed on this computer... U should install so. Playing with perl without the docs is like playing football without the ball... Why don't u install

Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Why to use glob()-command when I can use exec() ??? I don't get it... /G http://www.varupiraten.se/

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Thanx!!! :-) /G - Original Message - From: Randal L. Schwartz merlyn@stonehenge.com To: beginners@perl.org; Gustav Wiberg [EMAIL PROTECTED] Sent: Saturday, November 12, 2005 11:10 PM Subject: Re: Why glob() ? Gustav == Gustav Wiberg [EMAIL PROTECTED] writes: Gustav Why

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi again! If I understood it right... @list = glob('*.txt'); would return all files that ends with *.txt in current directory? /G http://www.varupiraten.se/ - Original Message - From: Randal L. Schwartz merlyn@stonehenge.com To: beginners@perl.org; Gustav Wiberg [EMAIL PROTECTED

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
To: Gustav Wiberg [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Saturday, November 12, 2005 11:31 PM Subject: Re: Why glob() ? Gustav == Gustav Wiberg [EMAIL PROTECTED] writes: Gustav Hi again! Gustav If I understood it right... Gustav @list = glob('*.txt'); Gustav would return all files that ends

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi there! Thanx! That's all I needed to know! :-) /G ps. I don't have the manual or Perl installed on this computer... - Original Message - From: Randal L. Schwartz merlyn@stonehenge.com To: Gustav Wiberg [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Saturday, November 12, 2005 11

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
- Original Message - From: Randal L. Schwartz merlyn@stonehenge.com To: Gustav Wiberg [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Sunday, November 13, 2005 12:10 AM Subject: Re: Why glob() ? Gustav == Gustav Wiberg [EMAIL PROTECTED] writes: Gustav Hi there! Gustav Thanx

Re: How to change the Owner of a file

2005-10-31 Thread gustav
Hi folks Can any body tell me how to change the owner of a file ?? I have written this script ... unless (chown $uid , $gid , $filename) { die chown failed :$!; } this code will give me the error you can't change permission denied can any body tell me , how to over come this

Die without textoutput?

2005-10-28 Thread gustav
Hi! When die is used, there is message something like: x doesn't exist as an environment variable Died at lsh.pl line 510, STDIN line 6. Childprocess complete I just want the current process to die without giving any output to screen, something like this: x doesn't exist as an environment

Re: Die without textoutput?

2005-10-28 Thread gustav
[EMAIL PROTECTED] wrote: Hi! Hello, When die is used, there is message something like: x doesn't exist as an environment variable Died at lsh.pl line 510, STDIN line 6. Childprocess complete I just want the current process to die without giving any output to screen, something like

Perl - Add env,.variable?

2005-10-27 Thread gustav
Hi there! I want to add an environment variable in Perl. Is there any built-in function for achieving this? /G @varupiraten.se -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

ENV(Y)?

2005-10-14 Thread gustav
Hi there! I'd like to get a list of enviromentvariables from the *NIX-system. I'd like it in the format... ENV1=x1 ENv2=x2 ENV3=x3 and so on... I think I have to use ENV-command. (http://perldoc.perl.org/Env.html) Is that right? I don't understand how I get this kind of listing. Please put me

Re: ENV(Y)?

2005-10-14 Thread gustav
Hi! Thanx a LOT!!! /G http://www.varupiraten.se/ Hi Gustav - At 2005-10-13, 23:13:33 you wrote: Hi there! I'd like to get a list of enviromentvariables from the *NIX-system. I'd like it in the format... ENV1=x1 ENv2=x2 ENV3=x3 and so on... I think I have to use ENV-command. (http

Re: ENV(Y)?

2005-10-14 Thread gustav
Hi! Just a quick question. Can I set or unset an enviromentvariable through this Hash? I just need a yes ... :-) If No, please give explanation... /G http://www.varupiraten.se/ Hi! Thanx a LOT!!! /G http://www.varupiraten.se/ Hi Gustav - At 2005-10-13, 23:13:33 you wrote: Hi

Re: Re: ENV(Y)?

2005-10-14 Thread gustav
get confused when I read about it on the net... http://www.devdaily.com/perl/edu/articles/pl020002/pl020002.shtml http://www.linux.com/howtos/Path-3.shtml If I like to set an environmentvariable permanently from my program? Isn't that possible in Perl? /G http://www.varupiraten.se/ Hi gustav

Re: Re: Re: ENV(Y)?

2005-10-14 Thread gustav
AHA!! Ok, thanx! Now I understand it better... :-) /G http://www.varupiraten.se/ Hi Custav - At 2005-10-14, 02:23:59 you wrote: Hi again! I've been looking around... And one thing I don't get. You tell me that SOMEVAR will be available to you in your program and any programs you spawn(

Re: Re: ENV(Y)?

2005-10-14 Thread Gustav Wiberg
an environmentvariable permanently from my program? Isn't that possible in Perl? /G http://www.varupiraten.se/ Hi gustav - At 2005-10-13, 23:42:22 you wrote: Hi! Just a quick question. Can I set or unset an enviromentvariable through this Hash? I just need a yes ... :-) If No, please give

Re: Kill child process?

2005-10-10 Thread Gustav Wiberg
Hi there! Thanx! /G - Original Message - From: zentara [EMAIL PROTECTED] To: beginners@perl.org Sent: Monday, October 10, 2005 10:25 AM Subject: Re: Kill child process? On Sun, 9 Oct 2005 15:53:19 +0200, [EMAIL PROTECTED] (Gustav Wiberg) wrote: Hi there! #Signal-handling

Kill child process?

2005-10-09 Thread Gustav Wiberg
Hi there! #Signal-handling for Ctrl-C # $SIG{INT} = \whenbreak; #This triggers when CTRl-C. # sub whenbreak { $SIG{INT} = \whenbreak; warn \n\nChildprocess killed.\n\n; } How can I do that a background-process would not stop? (say that I only want to break

for each

2005-10-07 Thread gustav
Hi there! How do I get a for each-statement to start at element 1 (second element) /G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: for each

2005-10-07 Thread gustav
Hi there! Yes, exactly. Thanx a lot! :-) /G - Original Message - From: [EMAIL PROTECTED] Date: Friday, October 7, 2005 3:29 pm Subject: for each Hi there! Hi! How do I get a for each-statement to start at element 1 (second element) $ perl -e ' @arr = qw (a b c);

Re: Finding directories within a tree

2005-10-07 Thread Gustav Wiberg
Hi there! Isn't it possible to use dir - command? (dos-command) which is similar to ls /G - Original Message - From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Friday, October 07, 2005 7:17 PM Subject: Finding directories within a tree Good Afternoon I am attempting to develop

Split with backslashes?

2005-10-05 Thread gustav
Hi there! I would like to split up a string like this my $cd = $arguments; @dirs = split(///,$cd); #Split $cd when there occurs a backslash but it doesn't seem to work. I guess /// must be rewritten in some way, but how? /G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Current directory?

2005-09-29 Thread gustav
Hi there! I want to get the current environment variable (current directory), and I type like this: $currentpath = %ENV; and I get something like 37/64 instead of maybe usr/username/test How do I get current directory? /G -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Current directory?

2005-09-29 Thread Gustav Wiberg
Hi there! Thanx! I'll try that! :-) /G - Original Message - From: Jeff Peng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Thursday, September 29, 2005 10:27 AM Subject: Re: Current directory? #!/usr/bin/perl use strict; use Cwd; print getcwd,\n; #get

File Existance

2005-09-28 Thread gustav
Hi there! I have a lot of experience in programming, but WHAT command do I use for checking if a file exists... Have searched google, but can't seem to find any good answers... /G http://www.varupiraten.se/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL