Rick wrote:
perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";'
Is there anyway to incoporate $\ <- output record separtor to do this
instead of printing out w/ manual spaces beteween the variables?
The Output Record Separator is what comes at the end of the record (or
line in this case), in
On Mon, Apr 13, 2009 at 15:39, Rick wrote:
>
>
> perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";'
>
> Is there anyway to incoporate $\ <- output record separtor to do this
> instead of printing out w/ manual spaces beteween the variables?
snip
No, you want to use $, or $". Since $" is already se
perl -lane' print "$F[0] ", "$F[4]" , " $F[5]";'
Is there anyway to incoporate $\ <- output record separtor to do this
instead of printing out w/ manual spaces beteween the variables?
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@pe
Gunnar Hjalmarsson wrote:
Raheel Hassan wrote:
I am facing problems in executing cgi programs, on Apache web server, can
any body tell me how i can configure my Apache server so that it can
support
CGI and Msql. I also wanted to enable ssl support in the Apache server.
http://httpd.apache.or
Raheel Hassan wrote:
I am facing problems in executing cgi programs, on Apache web server, can
any body tell me how i can configure my Apache server so that it can support
CGI and Msql. I also wanted to enable ssl support in the Apache server.
http://httpd.apache.org/docs/2.0/howto/cgi.html
ht
Hello,
I am facing problems in executing cgi programs, on Apache web server, can
any body tell me how i can configure my Apache server so that it can support
CGI and Msql. I also wanted to enable ssl support in the Apache server.
Thanks in advance.
Regards,
Raheel.
On Mon, Apr 13, 2009 at 09:43, Dr.Ruud wrote:
> Kelly Jones wrote:
>>
>> I "cpan Text::Unidecode" on 2 machines and then ran this code:
>>
>> use utf8;
>> use Text::Unidecode;
>> print unidecode("\x{5317}\x{4EB0}")."\n";
>> print unidecode("\xd0\x90\xd0\xbb")."\n";
>> print unidecode("\xe3\x82\xa2
Kelly Jones wrote:
I "cpan Text::Unidecode" on 2 machines and then ran this code:
use utf8;
use Text::Unidecode;
print unidecode("\x{5317}\x{4EB0}")."\n";
print unidecode("\xd0\x90\xd0\xbb")."\n";
print unidecode("\xe3\x82\xa2")."\n";
On both machines, the first line correctly prints "Bei Jing"
On Mon, Apr 13, 2009 at 04:49, Michael Alipio wrote:
snip
> my $pid = fork ();
You must check to see if $pid is defined. If it isn't
then fork failed. The parentheses are oddly placed and
unnecessary.
> if ($pid == 0){
> exec ("top");
Again with the odd parentheses placement. Function
calls
Hi,
I'm trying to launch and external program using fork.
my $pid = fork()
if ($pid == 0){
system ("top");
exit (0);
}else{
waitpid ($pid, 0)
}
print "External Program died!";
The problem is "top", or the program i'm actually going to run always detaches
to the child perl process I have
On Mon, Apr 13, 2009 at 06:12, Gunnar Hjalmarsson wrote:
snip
>> Also, if you make that change you need to check the for loop as well:
>>
>> for my $i (0 .. 10) {
>
> Actually no.
>
> $ perl -wle '
> @rank = qw/A 2 3 4 5 6 7 8 9 10 J Q K A/;
> print map $_."[cdhs]", @rank[10..10+4];
> '
> Use of u
Chas. Owens wrote:
On Sun, Apr 12, 2009 at 21:58, Gunnar Hjalmarsson wrote:
Chas. Owens wrote:
my @rank = qw/ 2 3 4 5 6 7 8 9 10 J Q K A /;
my @rank = qw/A 2 3 4 5 6 7 8 9 10 J Q K A /;
--^
snip
That depends on who you play with.
Ok.
Also, if you make that change you
Hi,
My program looks like this:
my $pid = fork ();
if ($pid == 0){
exec ("top");
}else{
my $time = 0
while (<1>){
sleep 1;
$time++;
if ($time == 10){
kill 9, $pid;
}
}
}
That is, after running the forked "top" process for 10 seconds, the main
program w
13 matches
Mail list logo