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
: 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
Hi there!
Why to use glob()-command when I can use exec() ??? I don't get it...
/G
http://www.varupiraten.se/
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
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
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
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
- 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
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
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
[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
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
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
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
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
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
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(
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
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
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
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
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);
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
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
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
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
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
27 matches
Mail list logo