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 P

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 command

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 ad

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]

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 = q

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 >&

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 - >

Re: Re: ENV(Y)?

2005-10-14 Thread gustav
//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 explanation... > > Not really. > >

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 prog

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]

Die without textoutput?

2005-10-27 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, 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 variable C

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, line 6. >> Childprocess complete >> >> I just want the current process to die without giving any output to >> screen, so

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

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

2006-03-06 Thread gustav
s plz Affected files: > --- 1.2 --> 1.3 1.2,1.3,xyz/readme.txt 0 0 9 , 6 , > 2006-03-02 15:21:27 , 0.00 scmbug test is working !!! 0 0 9 , 6 , > 2006-03-02 15:22:25 , 0.00 > > i want the code to display records like a clear report with individual > fileds having sp

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: Sent: Thursday, September 29, 2005 10:27 AM Subject: Re: Current directory? #!/usr/bin/perl use strict; use Cwd; print getcwd,"\n"; #get the curren

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: Sent: Friday, October 07, 2005 7:17 PM Subject: Finding directories within a tree Good Afternoon I am attempting to develop a script that wi

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 cu

Re: Kill child process?

2005-10-10 Thread Gustav Wiberg
Hi there! Thanx! /G - Original Message - From: "zentara" <[EMAIL PROTECTED]> To: 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-han

Re: Re: ENV(Y)?

2005-10-14 Thread Gustav Wiberg
html 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 - > > At 2005-10-13, 23:42:22 you wrote: >>Hi! >> >>Just a quick questi

Globbing?

2005-11-12 Thread Gustav Wiberg
Hi there! A question about globbing... What actually happens in the Operatingsystem when a globbing is done? is ls *.txt the same as: ls hello1.txt ls hello2.txt ls hello3.txt (If these file are in the same directory that ls is typed) I know I can use exec() but I want to know what actually h

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" To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Saturday, November 12, 2005 11:10 PM Subject: Re: Why glob() ? "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes

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" To: ; "Gustav Wiberg" <[EMAIL PROTECTED]&g

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
Hi again! Thanx! :-) I'm trying to ask as much as possible just to be on the clear with it... :-) This seems totally meaningless, but what would $list = glob('*.txt') return? /G http://www.varupiraten.se/ - Original Message - From: "Randal L. Schwartz" To

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" To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: Sent: Saturday, November 12,

Re: Why glob() ?

2005-11-12 Thread Gustav Wiberg
- Original Message - From: "Randal L. Schwartz" To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: Sent: Sunday, November 13, 2005 12:10 AM Subject: Re: Why glob() ? "Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes: Gustav> Hi there! G

Re: Why glob() ?

2005-11-14 Thread Gustav Wiberg
> Cc: Sent: 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