On 11 Aug 2006 at 14:45, John W. Krahn wrote:
> Beginner wrote:
> > I would be interested to know who I can improve this, or what a real
> > programmer would do differently. Any tips are much appreciated.
>
> Okey doke!
> > What I have so far =
> >
> > use strict;
> >
Hello,
I am not shure if I post this question in the right mailing list, but
let's try.. ;-)
I want to use Perl to monitor the audio level of a line input from the
soundcard, in other words, I want to build a (simple) script that detects
silence, to monitor a broadcast link.
I have found a modul
Hi,
I am new to the list and newbie in perl.
I have a big flat file(100G). The file was supposed to be in a single line
but many of records(as it has ^M). There are also ^@ and tabs in between.
I want to first replace the control characters and tabs with space.
I tried this s/[[:cntrl:]\t]/ /g.
Saravana Kumar wrote:
> Hi,
Hello,
> I am new to the list and newbie in perl.
>
> I have a big flat file(100G). The file was supposed to be in a single line
> but many of records(as it has ^M). There are also ^@ and tabs in between.
>
> I want to first replace the control characters and tabs wi
Beginner wrote:
> On 11 Aug 2006 at 14:45, John W. Krahn wrote:
>>
>>use strict;
>>use warnings;
>>use XML::Simple;
>>use Data::Dumper;
>>
>>my $file = 'test2.tif';
>>
>>open my $FH, '<:raw', $file or die "Can't open $file: $!\n";
>>
>>my $data;
>>while ( <$FH> ) {
>>next unless s!.*?
> It is
Hi All,
I am executing a specific command thru perl script. if the output of the
command is NULL (not error , not any output) then that NULL output /
status i want to catch.
Can anybody please help.
Regards
Irfan.
Hy Perl's
This is a little out of the scope of this place but I really need help
I'm moving to Rome and I'm trying to find some contacts of enterprises
using Perl (I need a job) in there.
Can I've your support?
thanks
--
Marcos Rebelo
http://oleber.awardspace.com/
--
To unsubscribe, e-mail:
On 14 Aug 2006 at 3:51, John W. Krahn wrote:
One last question (honest).
> > What is "s!." in line 12, "next unless s!"
>
> s/// is the substitution operator.
Why are you substituing here? Isn't a match good enough or is it
necessary for some other reason?
> > Here the output I get:
> >
Hi All,
When embedding double-quotes (") in an already double-quoted (for
interpolation) backticked command, one back-quotes them.. (\") and all
is well. (e.g. passing a quoted sub-command to find -exec..)
What though, if one is dealing with double quotes 3 levels deep? I've
tried various combin
OK, I figured it out. For anyone interested, the solution is to change:
$R->send(qq`x <- c(1,2,3) \n shapiro.test (x)`);
to
$R->send(qq`x <- c(1,2,3) \n out <- shapiro.test (x) \n print (out)`);
Which then gives you the result as it should.
--
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED
On Mon, 14 Aug 2006 07:16:47 -0500, Henry, Mark Patrick wrote:
> When embedding double-quotes (") in an already double-quoted (for
> interpolation) backticked command,
Exactly how is a backticked command double-quoted? It just has `...`. Or
do you mean that its interpolation rules are the same
Once I have printed labels to the screen,
and I have inserted my notes of the day.
to this calendar program.
How can I delete old labels, when I scroll
to he next month now I see old months and
I read my notes of the day from files here
and now it shows, the "data" what are
an other month's file
Greetings,
I have a field that a user must enter that must be in a specific
format. For example:
F8_A01F0123
The pertinent parts are F8, A, 01, F, 0123, while the underscore is
a separator.
I have come up with the following regular expression to match this
pattern.
$reverse =
Dear all,
I need to read a data file containing 96 records/lines
and each record/line contains several columns
separated by tab. I would like to extract the first
column from each record only and put them into a 12x8
array. Here is the script I use to do the job but it
seems I have some problems
chen li wrote:
: I need to read a data file containing 96 records/lines
: and each record/line contains several columns
: separated by tab. I would like to extract the first
: column from each record only and put them into a 12x8
: array. Here is the script I use to do the job but it
: seems I
@zentara:
Thanks for your reply!
This is definitely very useful!
I am using FreeBSD 5.x or 6.x and the standard sound system FreeBSD
supplies.
I will work thru your samples
Again,
Thank you!
Maarten
zentara wrote:
On Mon, 14 Aug 2006 08:42:30 -0400, [EMAIL PROTECTED] (zentara)
wrote:
Hi all,
I'm a bloody beginner to perl. On my Win XP platform the activestate-perl is
installed. Installation of some perl modules like DBD-mysql or EasyDBAccess
worked fine. Now I need some graphics. The library libgd and GD.pm seems to
be required for that. I got the dll-version from http://www
To Whom It May Concern:
I am new to perl scripting. I have
a record that I am writing to a file and the last field in the record is space
filled. How do I fill this record with spaces so that my entire record
length is 95 characters?
Sample of record:
format HEADERNINE =
Henry, Mark Patrick wrote:
> Hi All,
Hello,
> When embedding double-quotes (") in an already double-quoted (for
> interpolation) backticked command, one back-quotes them.. (\") and all
> is well. (e.g. passing a quoted sub-command to find -exec..)
>
> What though, if one is dealing with double q
Gloria Hairston wrote:
Hello Gloria,
> Content-Type: multipart/related;
> type="multipart/alternative";
> boundary="_=_NextPart_001_01C6BFE1.F5E4D64A"
[snip]
> --_=_NextPart_001_01C6BFE1.F5E4D64A
> Content-Type: multipart/alternative;
> boundary="_=_NextPart_002_01C6
chen li wrote:
> Dear all,
Hello,
> I need to read a data file containing 96 records/lines
> and each record/line contains several columns
> separated by tab. I would like to extract the first
> column from each record only and put them into a 12x8
> array. Here is the script I use to do the jo
Kevin Viel wrote:
> Greetings,
Hello,
> I have a field that a user must enter that must be in a specific
> format. For example:
>
> F8_A01F0123
>
> The pertinent parts are F8, A, 01, F, 0123, while the underscore is
> a separator.
>
> I have come up with the following regular expres
Dear all,
I have an array contains 12 numbers. I want to
calculate the mean and standard deviation for very
three numbers. I just wonder which math module is
available to do the job.
Thanks,
Li
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the
chen li wrote:
Dear all,
I have an array contains 12 numbers. I want to
calculate the mean and standard deviation for very
three numbers. I just wonder which math module is
available to do the job.
Wonder no longer :) Find out for sure:
http://search.cpane.org/
--
To unsubscribe, e-mail:
Hello everyone
I want to list all the Perl modules installed on my system. The script
below does it well.
Unfortunately, it displays the name of each installed Perl module twice.
How can I get rid of them?
Lastly, if you have any suggestion about improving this script, it would
be very nice.
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 4:48 PM
To: beginners@perl.org
Subject: Re: math module and array manipulation
> chen li wrote:
>> Dear all,
>>
>> I have an array contains 12 numbers. I want to
>> calculate the mean and s
On 8/14/06, SFantar <[EMAIL PROTECTED]> wrote:
I want to list all the Perl modules installed on my system.
Did you want Inside?
http://search.cpan.org/~phoenix/Inside-1.01/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
27 matches
Mail list logo