how to call a matlab program in the perl script

2008-06-11 Thread vikingy
Hi all, I want to call a matlab program(*.m) in the perl sript, how to realize this function? Thanks in advance~ 2008-06-11 The Key Lab of Complex Systems and Intelligence Science, Institute of Automation, Chinese Academy of Sciences.

Use of uninitialized value at C:\Perl\bin/lwp-download line 171

2008-06-11 Thread bdy120602
I'm using lwp-download from the comand line to download a PDF file from a site, and I'm receiving an error: Use of "uninitialized value at C:\Perl\bin/lwp-download line 171." I also receive the same message when I'm downloading a gif or jpg Thanks, -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: ByteLodaer Module for perl 5.10

2008-06-11 Thread sisyphus
On Jun 10, 7:46 pm, [EMAIL PROTECTED] (Sivasakthi) wrote: . . > I need rpm or source of ByteLoder module You'll find both ByteLoader.pm and ByteLoader.xs in the ext/ByteLoader directory in the perl 5.8.8 source distribution. Just copy those 2 files to some build location, create a Makefile.PL, and

Re: code references - how to

2008-06-11 Thread Dermot
2008/6/11 Rob Dixon <[EMAIL PROTECTED]>: > Dermot wrote: >> Hi All, ..snip >> So how do you create a code reference in this context, should I create >> a code reference or use something else and what should I be test the >> hash values for? >> Thanx in advance. >> Dp. >> >> >> >> #!/usr/bin/perl

Re: the file format does not write to the output file

2008-06-11 Thread Aruna Goke
John W. Krahn wrote: Aruna Goke wrote: If i run the below code it does not right to the voucher.rtf file. Can you guide on the best way to accomplish this. #!/usr/bin/perl use warnings; use strict; my ($pin, $pin1, $pin2, $val); format MINE= Voucher @<<< Voucher @<<<

Converting integer + mantissa to float

2008-06-11 Thread Jay Savage
I'm having trouble wrapping my brain around this: I am writing a script that will receive two integers as input that represent a single float. The first is the integer part, the second is hat mantissa. How do I recomine them into a single float? all I'm coming up with so far is: my $float = $int_

Program to fetch user information

2008-06-11 Thread Gunwant Singh
Hi, I have written a small Perl script so to fetch information about the user. Here is the code: /1use strict; 2use warnings; 3use Win32::Netadmin; 4Win32::NetAdmin::UserGetAttributes(my $server,my $userName,my $password,my $passwordAge,my $privilege,my $homeDir,my $comment,my

How attach files and send mails on perl????

2008-06-11 Thread Armin Garcia
Hi Well i try to attach a file, but i dont know what function or method i need to use, here is my code, i hope anybody can help me thanks (im only want to attach files, thanlks ) #!/usr/bin/perl use Mail::Internet; use Mail::Box::Manager; use Email::Folder; $folder_file = "/home/agarc

Re: Converting integer + mantissa to float

2008-06-11 Thread Rob Dixon
Jay Savage wrote: > > I'm having trouble wrapping my brain around this: > > I am writing a script that will receive two integers as input that > represent a single float. The first is the integer part, the second is > hat mantissa. How do I recomine them into a single float? all I'm > coming up wi

Re: Program to fetch user information

2008-06-11 Thread Rob Dixon
Gunwant Singh wrote: > > I have written a small Perl script so to fetch information about the > user. Here is the code: > > /1use strict; > 2use warnings; > 3use Win32::Netadmin; > 4Win32::NetAdmin::UserGetAttributes(my $server,my $userName,my > $password,my $passwordAge,my $pri

Comparing fields in 2 large files

2008-06-11 Thread Ferry, Craig
I am new to perl and would appreciate any suggestions as to how to do the following. I have two files, one with 3.5 million records, the other with almost a million records. Basically here's what I need to do. See if field_1 in file_a is part of field_1 in file_b If so, see if field_2 in file_a

Re: Comparing fields in 2 large files

2008-06-11 Thread Rob Dixon
Ferry, Craig wrote: > > I am new to perl and would appreciate any suggestions as to how to do > the following. > > I have two files, one with 3.5 million records, the other with almost a > million records. Basically here's what I need to do. > > See if field_1 in file_a is part of field_1 in fi

Re: How attach files and send mails on perl????

2008-06-11 Thread Octavian Rasnita
From: "Armin Garcia" <[EMAIL PROTECTED]> Hi Well i try to attach a file, but i dont know what function or method i need to use, here is my code, i hope anybody can help me thanks (im only want to attach files, thanlks ) I found it more easy to use Mail::Sender::Easy for sending tex

Re: How attach files and send mails on perl????

2008-06-11 Thread Rob Dixon
Armin Garcia wrote: > Hi > Well i try to attach a file, but i dont know what function or method i need > to use, here is my code, i hope anybody can help me thanks > (im only want to attach files, thanlks ) > > > #!/usr/bin/perl > > use Mail::Internet; > use Mail::Box::Manager; > use E

Re: Comparing fields in 2 large files

2008-06-11 Thread Rob Dixon
Ferry, Craig wrote: > > My original data is in a database. I did really mean that field 1 in > file a could be any part of field 1 in file b. I also forgot to > mention that in addition to it being in any part of field 1 of file b, I > have to strip out special characters from file b before do

Re: How attach files and send mails on perl????

2008-06-11 Thread Armin Garcia
hi !!! thanks for your help And im sorry Rob, but this code its not mine ... but thanks, i never see in my mind how you minimize that code, really thanks for your help, and i found another module named MIME::Lite, its more easy to use, and attach files, and do another things very quickly and

RE: Comparing fields in 2 large files

2008-06-11 Thread Ferry, Craig
Hi Craig Please keep your responses to the perl.beginners group so that others can both provide input as well as learn from your experience. Thanks. I suggest you stick with Perl but process the data directly from the database. Take a look at the DBI module, which isn't a standard one and so may

parsing and storing with Mechanize & DBI

2008-06-11 Thread jobst müller
hello list , hello Rob many thanks for the reply. to avoid confusion - i try a first reply to your adress - not to the list. I am aware that i have to explain the issue, the problem and the needs more clearly - i try to do so. Rob please give me feedback on that - if you need more input then

Re: Comparing fields in 2 large files

2008-06-11 Thread Rob Dixon
Ferry, Craig wrote: >> >> Please keep your responses to the perl.beginners group so that others >> can both >> provide input as well as learn from your experience. Thanks. >> >> I suggest you stick with Perl but process the data directly from the >> database. >> Take a look at the DBI module, whi

Re: How attach files and send mails on perl????

2008-06-11 Thread Rob Dixon
Armin Garcia wrote: > hi !!! > > thanks for your help > > > And im sorry Rob, but this code its not mine ... but thanks, i never see > in my mind how you minimize that code, really thanks for your help, and > i found another module named MIME::Lite, its more easy to use, and > attach files,

Re: looping 2 times through 5000 differs from 5000 times through 2

2008-06-11 Thread oldgeezer
On Jun 8, 5:03 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > oldgeezer wrote: > > Hi all, > > > Last week I discovered this perl.beginners group. > > Good stuff here, albeit many times hard to grasp > > the answers. But I'm learning. > > > What I would like to understand is why looping > > 2 times thr

installing Lingua-EN-Sentence-0.25 error - wrong version

2008-06-11 Thread iain . adams . 1985
Hello, I downloaded Lingua-EN-Sentence-0.25 from CPan (http://search.cpan.org/ ~shlomoy/Lingua-EN-Sentence-0.25/). I followed the install instructions and everything seemed to go fine. However when I attempt to use it in my perl script I get the error Lingua::EN::Sentence version 1 required--this

Re: looping 2 times through 5000 differs from 5000 times through 2

2008-06-11 Thread Jenda Krynicky
From: oldgeezer <[EMAIL PROTECTED]> > But you also made me aware of a mistake > I always made until now. The three periods in > for (x...y) > I must have inherited that error from > another language. Probably from an > interpreter I wrote myself some 30 > years ago. It's not an error. Just so

Re: How attach files and send mails on perl????

2008-06-11 Thread Randal L. Schwartz
[Earlier...] > ""Armin" == "Armin Garcia" <[EMAIL PROTECTED]> writes: Armin> [...] here is my code, i hope anybody can help me [...] [note he said "my code"] [And then later...] > ""Armin" == "Armin Garcia" <[EMAIL PROTECTED]> writes: Armin> And im sorry Rob, but this code its not mi

Re: How attach files and send mails on perl????

2008-06-11 Thread John W. Krahn
Armin Garcia wrote: Hi Hello, Well i try to attach a file, but i dont know what function or method i need to use, here is my code, i hope anybody can help me thanks (im only want to attach files, thanlks ) #!/usr/bin/perl use warnings; use strict; use Mail::Internet; use Mail:

Re: looping 2 times through 5000 differs from 5000 times through 2

2008-06-11 Thread Rob Dixon
oldgeezer wrote: > > Hi all, > > Sorry for the late response, I've been busy doing something else. That's cool. > As a newbie in this perl.beginners, I did not know that it is a good thing to > tell what purpose the script has. My script is purely hobby. All my scripts > are. As a general prin

Re: How attach files and send mails on perl????

2008-06-11 Thread Rob Dixon
Randal L. Schwartz wrote: > [Earlier...] > >> ""Armin" == "Armin Garcia" <[EMAIL PROTECTED]> writes: > > Armin> [...] here is my code, i hope anybody can help me [...] > > [note he said "my code"] > > [And then later...] > >> ""Armin" == "Armin Garcia" <[EMAIL PROTECTED]> writes: > >

Re: parsing and storing with Mechanize & DBI

2008-06-11 Thread Rob Dixon
jobst müller wrote: > hello list , hello Rob > > many thanks for the reply. > > to avoid confusion - i try a first reply to your adress - not to the list. I > am aware that i have to explain the issue, the problem and the needs more > clearly - i try to do so. > > Rob please give me feedback o

Re: installing Lingua-EN-Sentence-0.25 error - wrong version

2008-06-11 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Hello, > > I downloaded Lingua-EN-Sentence-0.25 from CPan (http://search.cpan.org/ > ~shlomoy/Lingua-EN-Sentence-0.25/). I followed the install > instructions and everything seemed to go fine. However when I attempt > to use it in my perl script I get the error > > Ling

Re: How attach files and send mails on perl????

2008-06-11 Thread Armin Garcia
Hi people... Well i see i create a problem My apologies for this... First, I post this problem becouse, im relative newer programming on perl, and becouse as you now, when you end the school and start in a new job, you sometimes dont have the suffient time to do your work, i recive this code

Re: How attach files and send mails on perl????

2008-06-11 Thread Rob Dixon
Armin Garcia wrote: > > Well i see i create a problem My apologies for this... > > First, I post this problem becouse, im relative newer programming on perl, > and becouse as you now, when you end the school and start in a new job, you > sometimes dont have the suffient time to do your work,

creating blackjack perl program (starts with pseudocode first)

2008-06-11 Thread Richard Lee
hi guys, Just for learning purpose and also for my enjoyment, I wanted to combine my fav game(blackjack) and my love for perl. I wanted to re-invent the wheel to help me and train myself to think like programmar First I wanted to create a pseudocode code since I wanted to use it late

hash keys

2008-06-11 Thread beast
Hi All, Why this following code has not working as expected? print "Number of element(s) : " . sprintf("%10d", keys(%hash) ) . "\n"; Thanks. --budhi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: hash keys

2008-06-11 Thread Rodrick Brown
On Thu, Jun 12, 2008 at 12:15 AM, beast <[EMAIL PROTECTED]> wrote: > Hi All, > > > Why this following code has not working as expected? > >print "Number of element(s) : " . sprintf("%10d", keys(%hash) ) . "\n"; > Try: print "Number of element(s): " . sprintf("%10d", scalar keys(%h)),"\n"; >

Re: creating blackjack perl program (starts with pseudocode first)

2008-06-11 Thread Rob Dixon
Richard Lee wrote: > hi guys, > > Just for learning purpose and also for my enjoyment, I wanted to combine my > fav game(blackjack) and my love for perl. I wanted to re-invent the wheel to > help me and train myself to think like programmar > > First I wanted to create a pseudocode code s

Re: hash keys

2008-06-11 Thread Rob Dixon
beast wrote: > Hi All, > > > Why this following code has not working as expected? > > print "Number of element(s) : " . sprintf("%10d", keys(%hash) ) . "\n"; keys(%hash) returns the hash keys as a list, so sprintf("%10d", keys(%hash) ) is like sprintf("%10d", 'key3', 'key4', 'key1',

Re: creating blackjack perl program (starts with pseudocode first)

2008-06-11 Thread Richard Lee
Rob Dixon wrote: I suggest you start by describing a very simple game that's not blackjack. One player gets dealt cards until he hits 21 or more. 21 is a win, more is a loss. Then add a dealer's hand. Then add face down cards Then add betting Then add, erm, insurance? Finish with the green

Re: creating blackjack perl program (starts with pseudocode first)

2008-06-11 Thread Richard Lee
Richard Lee wrote: Rob Dixon wrote: I suggest you start by describing a very simple game that's not blackjack. One player gets dealt cards until he hits 21 or more. 21 is a win, more is a loss. Then add a dealer's hand. Then add face down cards Then add betting Then add, erm, insurance?

Re: creating blackjack perl program (starts with pseudocode first)

2008-06-11 Thread Rob Dixon
Richard Lee wrote: > Rob Dixon wrote: >> I suggest you start by describing a very simple game that's not blackjack. >> One >> player gets dealt cards until he hits 21 or more. 21 is a win, more is a >> loss. >> >> Then add a dealer's hand. >> >> Then add face down cards >> >> Then add betting >>