From: Ricardo SIGNES [mailto:[EMAIL PROTECTED]
Sent: 21 September 2006 01:19
To: beginners@perl.org
Subject: Re: Non-technical question
X-Message-Flag: Warning: This sender thinks he is better than you.
X-Planet: Planet of the Apes
User-Agent: Mutt/1.5.11+cvs20060126
Nice headers, Ricardo.
if i use one array in foreach loop then can i use same array
in another part of the code.
What do you think? Have you actually tried to do this?
Perhaps you could submit the smallest possible piece of code illustrate
your prediciment?
--
http://www.bbc.co.uk/
This e-mail (and any
Sayed, Irfan (Irfan) wrote:
Here is my code
# Perl script to change the replica name
use strict;
use warnings;
# my $fname = /tmp/vob_list1;
# open FILE,,$fname or die $!;
# my $fname1 = /tmp/repl_list1;
# open FILE1,,$fname1 or die $!;
my $CT =
Hi all,
The following code block
foreach $protein (@pdbs) {
$rmsd[$i] = 0;
foreach $protein2 (@pdbs2) {
system(./TMalign $protein $protein2 | cgrep -i rmsd
temp) == 0 or die $?;
open(TEMP,'temp') or die $?;
chomp($line = TEMP);
--- John W. Krahn [EMAIL PROTECTED] wrote:
I want to read some information about AUTOLOAD in
POD.
But I get nothing when I type perldoc -f/-q
AUTOLOAD.
Any comments?
perlsub has an Autoloading section:
perldoc perlsub
Also the AUTOLOAD: Proxy Methods section of:
perldoc
--- Jeff Pang [EMAIL PROTECTED] wrote:
I want to read some information about AUTOLOAD in
POD.
Hi,
Got these pieces from Schwartz's book and hope it
helps.
Hi Jeff,
Thank you very much,
Li
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail
On 09/21/2006 04:52 AM, Saurabh Singhvi wrote:
Hi all,
The following code block
is written without strictures and warnings enabled. If you place these
lines,
use strict;
use warnings;
at the top of your program, you'll catch errors much more quickly. In
particular, use strict will
On 09/21/06 07:30, Mumia W. wrote:
Try the open command I wrote, and see if that works. I hope this helps.
s/open command/code/
No I didn't write the open command ;-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Hello list.
I'm getting the following error message when compiling the program
listed below ...
Bad name after c' at /test/test1.cgi line 22.
line 22 is ' s/%(..)/pack('c', hex($1))/eg;'
Need help in eliminating this error!
thnx
tony
=
#!/usr/local/bin/perl -w
use strict;
#
Hi,
I am sorry about the above, it was a part of the complete code.
I was using warnings but not strict. Also, the OS is gentoo and fs
was reiser4/ ext3, with same results. Your method kind of works, but a
lot of warnings are being thrown up.
The main ones being :
Use of uninitialized value in
Ricardo == Ricardo SIGNES [EMAIL PROTECTED] writes:
Ricardo Good question. Here are some common pronunciations:
Ricardo $_ - it or the topic
Ricardoforeach (@line) { chomp $_; }; # for each line, chomp it
I've always called that dollar underscore in the llama class. It's
important
Hi list
I found the problem. It was at line 10
print 'x[$x]br;
should have been...
print x[$x]br;
Thanks
tony
Tony Frasketi wrote:
Hello list.
I'm getting the following error message when compiling the program
listed below ...
Bad name after c' at /test/test1.cgi line 22.
line
On 09/21/2006 10:25 AM, Tony Frasketi wrote:
Hello list.
I'm getting the following error message when compiling the program
listed below ...
Bad name after c' at /test/test1.cgi line 22.
line 22 is ' s/%(..)/pack('c', hex($1))/eg;'
Need help in eliminating this error!
thnx
tony
A Dijous 21 Setembre 2006 01:38, [EMAIL PROTECTED] va escriure:
Hello
I am looking for some simple perl functions that will return the current
date and time in string format. The purpose is to create a file with part
of the name being the date and time.
Thanks,
Andrew
sytem date spits out
Saurabh Singhvi wrote:
Hi all,
Hello,
The following code block
foreach $protein (@pdbs) {
$rmsd[$i] = 0;
foreach $protein2 (@pdbs2) {
system(./TMalign $protein $protein2 | cgrep -i rmsd
What is cgrep? I don't have that on my system.
temp) == 0 or die $?;
I think you are missing the closing `.
-Original Message-
From: Tony Frasketi [EMAIL PROTECTED]
Sent: Sep 21, 2006 10:25 AM
To: beginners@perl.org
Subject: PACK statement compile error
Hello list.
I'm getting the following error message when compiling the program
listed below ...
Dear All,
First I would like to say hello to all in the community
Next I would ask for some advice, I wish to change the MAC address of my
smoothwall, firewall every 24 hours, I can do it manually, but would
prefer it to be a cron job and perl seems ideal. You may well ask why I
wish to do such
I have no idea exactly how to do it, as I have never even heard of a
smoothwall firewall but I would like to caution you.
The thing is that as soon as you stumble upon the unlucky coincidence of
changing to the same mac address as one of your fellow internet users who
happens to be on the same
Hi all,
I read some sections in perltoot. In section
Autoloaded Data Methods I see some line codes as
following:
package Person;
use Carp;
our $AUTOLOAD; # it's a package global
my %fields = (
name= undef,
age = undef,
Ian == Ian Macdonald [EMAIL PROTECTED] writes:
Ian Next I would ask for some advice, I wish to change the MAC address of my
Ian smoothwall, firewall every 24 hours, I can do it manually, but would
Ian prefer it to be a cron job and perl seems ideal. You may well ask why I
Ian wish to do such a
Hey guys,
I am reading the Perl Camel book - Programming Perl 3rd Ed and having a bit
of trouble to understand some of the ideas presented in section 2.11.2.
Specifically it is told the following two statements are different:
1) if ($_ = STDIN) { print; }# suboptimal: doesn't
21 matches
Mail list logo