Re: Help with Getopt::Std

2011-10-20 Thread Brandon McCaig
On Thu, Oct 20, 2011 at 11:45 PM, newbie01 perl wrote: > Playing around with Getopt::Std as am trying to convert a UNIX > Korn Shell Script to a Perl script. > > Is it possible to check for what are the values for opterr, > optarg, optind? How? :(- There are many Getopt:: packages. Perhaps you s

Help with Getopt::Std

2011-10-20 Thread newbie01 perl
Hi all, Playing around with Getopt::Std as am trying to convert a UNIX Korn Shell Script to a Perl script. Is it possible to check for what are the values for opterr, optarg, optind? How? :(- I've been Googling for quite sometime now and can't find an example of Perl scripts that checks for opte

Re: In search of a list class with unusual accessors

2011-10-20 Thread David Christensen
On 10/20/2011 06:28 PM, Rob Dixon wrote: I think you should be wary of returning a simple scalar only when there is just a single item in the list. You will end up having to check to see if the return value is a reference before you know how to handle it. I didn't design the calling interface t

Re: parsing script misbehaving...

2011-10-20 Thread John W. Krahn
nac wrote: HI again, Hello, I have corrected myself a bit, I think the script is now giving me what I want, having said that, I guess it is not the best way ( even if there is more than one way), again any pointer are welcome. many thanks Nat #!/usr/bin/perl use strict; use warnings; my @seq;

Re: In search of a list class with unusual accessors

2011-10-20 Thread Rob Dixon
On 21/10/2011 01:54, David Christensen wrote: On 10/19/2011 07:04 PM, David Christensen wrote: > I am looking for a class that stores zero or more items (e.g. a list) > and that provides accessors that accept and return scalar, list, > and/or array references depending upon context and object

Re: parsing script misbehaving...

2011-10-20 Thread Rob Dixon
On 21/10/2011 00:32, nac wrote: > HI again, > I have corrected myself a bit, I think the script is now giving me what I > want, having said that, I guess it is not the best way ( even if there is > more than one way), again any pointer are welcome. > many thanks > Nat > #!/usr/bin/perl > use strict

Re: parsing script misbehaving...

2011-10-20 Thread John W. Krahn
nac wrote: HI, Hello, I need your wisdom on this parsing script. I have a fastq file,this contains info for reads ( from nextGen), 1 line starts with a @, second contain the sequence info from which I want to count pattern, third line with a sign, fourth with info about the sequence quality (

Re: In search of a list class with unusual accessors

2011-10-20 Thread David Christensen
On 10/19/2011 07:04 PM, David Christensen wrote: > I am looking for a class that stores zero or more items (e.g. a list) > and that provides accessors that accept and return scalar, list, > and/or array references depending upon context and object content > (similar to CGI.pm, but not exactly the

Re: Perl 5.12.1 manual install - make test problem.

2011-10-20 Thread Brian Fraser
2011/10/20 Rafał Radecki > Hi all. > I am installing locally perl using howto > http://www.mail-archive.com/padre-dev@perlide.org/msg00363.html . > When I make make test I returns message about an error in > porting/checkcase.t and a hint to: > export LD_LIBRARY_PATH=`pwd`;cd t;./perl harness > T

Re: parsing script misbehaving...

2011-10-20 Thread nac
HI again, I have corrected myself a bit, I think the script is now giving me what I want, having said that, I guess it is not the best way ( even if there is more than one way), again any pointer are welcome. many thanks Nat #!/usr/bin/perl use strict; use warnings; my @seq; @seq=qw{^TGGCAGTGGAGG

parsing script misbehaving...

2011-10-20 Thread nac
HI, I need your wisdom on this parsing script. I have a fastq file,this contains info for reads ( from nextGen), 1 line starts with a @, second contain the sequence info from which I want to count pattern, third line with a sign, fourth with info about the sequence quality ( see attached working e

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
Hi Gustavo, I tried both, still getting same error. tx. Rajeev From: Gustavo Telly To: Rajeev Prasad Cc: perl list Sent: Thursday, October 20, 2011 11:45 AM Subject: Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine] Hello Rajeev

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Gustavo Telly
Hello Rajeev, Did you try: $ua->protocols_allowed( [ 'http', 'https'] ); or $ua->protocols_allowed(undef); ?? 2011/10/20 Rajeev Prasad > anyone ? plz > > > > here is my script which is trying to access two websites, from my linux > box. i am not able to figure, why am i getting "501 Not I

DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-20 Thread Phil Dobbin
Hi. I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. I have a working MySql in /usr/local/ (MySQL 5.1.59) & the latest Bundle-DBI. I’ve tried from CPAN & compiling from source, scoured the Internet to find

Re: LWP::UserAgent 501 Not Implemented only for https?? [firefox works fine]

2011-10-20 Thread Rajeev Prasad
anyone ? plz here is my script which is trying to access two websites, from my linux box. i am not able to figure, why am i getting "501 Not Implemented" for any https website. especially when the firefox browser from the same box can access the websites fine using same proxy. proxy does not

Re: Getting cpamn to work in Windows-7

2011-10-20 Thread Brandon McCaig
On Thu, Oct 20, 2011 at 10:38 AM, Rowan Sylvester-Bradley wrote: > 3. Got a long list of log info containing many error messages > and warnings, the most interesting of which was probably > several Access Denied messages. I tried capturing the log into > a file at *snip* > Strangely it does _not_

Getting cpamn to work in Windows-7

2011-10-20 Thread Rowan Sylvester-Bradley
I'm pretty new to Perl, but now I need to install and use a Perl software package (Daniel Klein's thermd). It requires a whole series of CPAN modules. I'm using Windows 7. I have so far done the following: 1. Updated my ActiveState Perl installation to the latest version. 2. In a command window o

Perl 5.12.1 manual install - make test problem.

2011-10-20 Thread Rafał Radecki
Hi all. I am installing locally perl using howto http://www.mail-archive.com/padre-dev@perlide.org/msg00363.html . When I make make test I returns message about an error in porting/checkcase.t and a hint to: export LD_LIBRARY_PATH=`pwd`;cd t;./perl harness Then I get: porting/checkcase.t (Wstat: 0

Re: In search of a list class with unusual accessors

2011-10-20 Thread Randal L. Schwartz
> "David" == David Christensen writes: David> I am looking for a class that stores zero or more items (e.g. a list) and that David> provides accessors that accept and return scalar, list, and/or array David> references depending upon context and object content (similar to CGI.pm, but David>