Jim Gibson writes:
[...]
> See 'perldoc perllol' for more details on constructing and accessing nested
> data structures in Perl.
Will do, and as always you've given a useful and brief run through,
thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-m
On 10/28/09 Wed Oct 28, 2009 3:18 PM, "Harry Putnam"
scribbled:
> Jim Gibson writes:
>
>> If you want to process files in a certain order, then save the files in an
>> array. When find is finished, sort that array and process the files in any
>> order. For example, if you want to process file
Jim Gibson writes:
> If you want to process files in a certain order, then save the files in an
> array. When find is finished, sort that array and process the files in any
> order. For example, if you want to process files in chronological order, in
> the wanted routine save the file path and ag
ANJAN PURKAYASTHA wrote:
> A filehandle to run a program ?!! And what is that pipe symbol doing there?
> Would appreciate any pointers to how this works or where I can read up
> about this.
Yes Perl can use pipes in open.
See:
perldoc -f open http://perldoc.perl.org/functions/open.html
perld
On 10/28/09 Wed Oct 28, 2009 3:00 PM, "ANJAN PURKAYASTHA"
scribbled:
> Trying to learn how to run Gnuplot via a Perl script I came across the
> following helpful example:
>
> #!/usr/bin/perl
> # Generate postscript and png plot with GNUplot from Perl
> # Author: Ioan Vancea
> # Usage: Give "da
Trying to learn how to run Gnuplot via a Perl script I came across the
following helpful example:
#!/usr/bin/perl
# Generate postscript and png plot with GNUplot from Perl
# Author: Ioan Vancea
# Usage: Give "data file" as an argument for script
use strict;
use warnings;
my $file = ARGV[0];
# P
On 10/28/09 Wed Oct 28, 2009 12:55 PM, "Harry Putnam"
scribbled:
> Looking over the perldoc File::Find output (perl 5.8.4)
>
> I see at finddepth it says:
> [...] in part
>
>"finddepth()" works just like "find()" except that is invokes the
>&wanted function for a directory a
Looking over the perldoc File::Find output (perl 5.8.4)
I see at finddepth it says:
[...] in part
"finddepth()" works just like "find()" except that is invokes the
&wanted function for a directory after invoking it for the direc-
tory's contents. It does a postorder traver
Jim Gibson writes:
[...]
> You don't need to compare regular expressions. If you did, then you would
> use the 'eq' operator on the strings that generate the regular expressions.
> However, that is unreliable, as two strings can generate the same effective
> pattern, as, for example, 'a?' is equ
On 10/28/09 Wed Oct 28, 2009 10:43 AM, "Harry Putnam"
scribbled:
> Jim Gibson writes:
>
>> We need to know what you are trying to accomplish here.
>
> Its over 300 lines of code at this writing.
Well we definitely do not want to see all 300 lines. However, some sample
input data and the act
Jim Gibson writes:
> We need to know what you are trying to accomplish here.
Its over 300 lines of code at this writing.
Where the re come in:
The program searches only headers for a given RE, but it also returns
the date line in any messages where the RE hits pay dirt.
The search RE is set
On 10/28/09 Wed Oct 28, 2009 9:37 AM, "Harry Putnam"
scribbled:
>
> What follows is snippet out of a more complex script and reworked to
> simplify but still not seeing what causes the problem.
>
> I'm not sure if I've just stared at it too long or what. When I run it
> I get this error:
>
What follows is snippet out of a more complex script and reworked to
simplify but still not seeing what causes the problem.
I'm not sure if I've just stared at it too long or what. When I run it
I get this error:
Use of uninitialized value in pattern match (m//) at ./match.pl
line 14.
> -Original Message-
> From: Aimee Cardenas [mailto:aim...@sfbrgenetics.org]
> Sent: Tuesday, October 27, 2009 15:53
> To: Perl Beginners
> Subject: printf
>
> Hi, All!
>
> I need to fix the width of some strings padding with leading
> spaces if
> necessary. I wanted to use printf bu
14 matches
Mail list logo