RE: install a package on windows

2010-12-15 Thread Sunita Rani Pradhan
You can install dmake/nmake to install perl packages . -Sunita -Original Message- From: Erez Schatz [mailto:moonb...@gmail.com] Sent: Wednesday, December 15, 2010 7:47 PM To: beginners@perl.org Subject: Re: install a package on windows On 12/15/2010 04:09 PM, Jeff Peng wrote: > Hi, > >

Re: Echo perl one-liner intact

2010-12-15 Thread C.DeRykus
On Dec 15, 8:05 am, redt...@gmail.com (Mike Martin) wrote: > Hi > > I am trying pass a perl one-liner to at intact eg: > > echo 'perl -mLinux::DVB::DVBT -e 'my > $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('frequency' > => '497167000','tsid' => '4222');my $file="/storage/bu

Re: Echo perl one-liner intact

2010-12-15 Thread Brandon McCaig
On Wed, Dec 15, 2010 at 8:47 PM, Mike Martin wrote: > to explain further the aim is that the one-liner is generated on the > fly and then passed to at to schedule recordings which is why I want > it to be a one liner so that at wll parse it correctly > > generating seperate files for each iteratio

Re: Echo perl one-liner intact

2010-12-15 Thread Mike Martin
On 15 December 2010 16:21, Jim Gibson wrote: > On 12/15/10 Wed  Dec 15, 2010  8:05 AM, "Mike Martin" > scribbled: > >> Hi >> >> I am trying pass a perl one-liner to at intact eg: >> >> echo 'perl -mLinux::DVB::DVBT -e 'my >> $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('fr

Re: install a package on windows

2010-12-15 Thread Jeff Peng
于 2010-12-16 7:06, Sisyphus 写道: ppm install MinGW I think that gives you both the MinGW port of the gcc compiler and dmake (which is the make utility you'll be using ... not gmake). If you find that dmake is not installed by running 'ppm install MinGW', then run: ppm install dmake Once MinGW a

Re: install a package on windows

2010-12-15 Thread Sisyphus
- Original Message - From: "Ron Bergin" You could also install the MinGW module which is in ActiveStates repository and which provides the needed compiler so you can build/install modules using cpan. Yes - more explicitly: ppm install MinGW I think that gives you both the MinGW po

Re: how smart is sort?

2010-12-15 Thread John
On Wed, 15 Dec 2010 15:50:40 -0600, John W. Krahn wrote: John wrote: [ SNIP ] You say "lexicographically" but you are using a numerical comparison operator. I meant lexicographically in that the arrays should be sorted first by comparing their first entries, then their second ones, etc. In

Re: how smart is sort?

2010-12-15 Thread John W. Krahn
John wrote: Thanks for pointing out the indexing mistake. I've fixed that in the code below, but the sorting is still correct. (I've also added "return 0" in case $z is always 0, but I get the same sort results with or without it.) The new array being sorted also shows that undef isn't sorted as

Re: how smart is sort?

2010-12-15 Thread John
On Wed, 15 Dec 2010 01:37:28 -0600, John W. Krahn wrote: John wrote: I'm sorting arrays by comparing corresponding entries. Take this example: @array = ([2,1],[2],[2,1],[1]); sub my_sort { for (0...@$a) { You have an off-by-one error because @$a is the number of elements in @$a,

Re: Echo perl one-liner intact

2010-12-15 Thread Onteria
> Hi > > I am trying pass a perl one-liner to at intact eg: > > echo 'perl -mLinux::DVB::DVBT -e 'my > $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('frequency' > => '497167000','tsid' => '4222');my $file="/storage/burn/testol";my > $ref={pmt=>'10'};$dvb->set_demux(101,102)

Echo perl one-liner intact

2010-12-15 Thread Mike Martin
Hi I am trying pass a perl one-liner to at intact eg: echo 'perl -mLinux::DVB::DVBT -e 'my $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('frequency' => '497167000','tsid' => '4222');my $file="/storage/burn/testol";my $ref={pmt=>'10'};$dvb->set_demux(101,102);$dvb->record($f

Re: Echo perl one-liner intact

2010-12-15 Thread Jim Gibson
On 12/15/10 Wed Dec 15, 2010 8:05 AM, "Mike Martin" scribbled: > Hi > > I am trying pass a perl one-liner to at intact eg: > > echo 'perl -mLinux::DVB::DVBT -e 'my > $dvb=Linux::DVB::DVBT->new(O_NONBLOCK,'O_RDONLY');$dvb->set_frontend('frequenc > y' > => '497167000','tsid' => '4222');my $file

Re: install a package on windows

2010-12-15 Thread Ron Bergin
Jeff Peng wrote: > Hi, > > I have intalled activeperl 5.10 on windows and try to install a perl > package. > But I can't find the package in activeperl's "perl package manager" > though this package does exist in CPAN. > Also my windows doesn't have gcc/gmake installed. > So how to install this kin

Re: install a package on windows

2010-12-15 Thread Rob Dixon
On 15/12/2010 14:09, Jeff Peng wrote: > Hi, > > I have intalled activeperl 5.10 on windows and try to install a perl > package. > But I can't find the package in activeperl's "perl package manager" > though this package does exist in CPAN. > Also my windows doesn't have gcc/gmake installed. > So h

Re: install a package on windows

2010-12-15 Thread Erez Schatz
On 12/15/2010 04:09 PM, Jeff Peng wrote: > Hi, > > I have intalled activeperl 5.10 on windows and try to install a perl > package. Hello Jeff, If possible, I recommend installing from the Strawberry Perl distribution: http://strawberryperl.com It includes a functioning cpan client, and comes wit

install a package on windows

2010-12-15 Thread Jeff Peng
Hi, I have intalled activeperl 5.10 on windows and try to install a perl package. But I can't find the package in activeperl's "perl package manager" though this package does exist in CPAN. Also my windows doesn't have gcc/gmake installed. So how to install this kind of package? Thanks. Regards.

Re: SOLVED - Re: perl and pipes - reading from syslog-ng

2010-12-15 Thread Gary Stainburn
HI Shlomi, On Wednesday 15 December 2010 11:57:25 Shlomi Fish wrote: [snip] > > > > while () { > > my $line=$_; > > Why are you doing this instead of: > > [code] > while (my $line = ) > { > } > [/code] > For two reason, (1) I've not written Perl in ages and forgotten much of the style and syn

Re: SOLVED - Re: perl and pipes - reading from syslog-ng

2010-12-15 Thread Shlomi Fish
Hi Gary, On Wednesday 15 December 2010 13:30:00 Gary Stainburn wrote: > Isn't it typical. Been working on this since yesterday, but as soon as I > post the question I find the answer· > > I've changed > > foreach my $line () { > > to > > while () { > my $line=$_; > Why are you doing this

SOLVED - Re: perl and pipes - reading from syslog-ng

2010-12-15 Thread Gary Stainburn
Isn't it typical. Been working on this since yesterday, but as soon as I post the question I find the answer· I've changed foreach my $line () { to while () { my $line=$_; and now it works perfectly. On Wednesday 15 December 2010 11:19:07 Gary Stainburn wrote: > Hi folks. > > I've writte

perl and pipes - reading from syslog-ng

2010-12-15 Thread Gary Stainburn
Hi folks. I've written a small perl script that reads from STDIN, parses the data and inserts into a database. It takes the output from syslog-ng and captures output from my firewall. I've configured syslog-ng to send output to the pipe and if I run cat /var/log/firewall/pipe I see the outpu

Re: Array Question

2010-12-15 Thread shawn wilson
> >> or the File::Find module to find files without resorting >> to the use of separate processes and shell commands. > > > Me second. > File::Find is your friend. > Also, since you seem to be familiar with find use find2perl and you barely have to lift a finger. Its like training wheels for File::

Re: Array Question

2010-12-15 Thread Jeff Peng
于 2010-12-15 1:38, Jim Gibson 写道: or the File::Find module to find files without resorting to the use of separate processes and shell commands. Me second. File::Find is your friend. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.o