How to create DSN on Solaris for Win32::ODBC

2010-04-08 Thread Parag Kalra
Hi All, I am planing to use Win32::ODBC to connect to SQL Server from Solaris through Perl. I know how to create DSN on Windows. But doesn someone have any idea how I can create dsn for Win32::ODBC on Solaris. I am planning to use following: bash-3.00$ pwd /opt/oracle/product/10.2.0.4.0/perl/li

Re: Decimal representation of binary file (unpack)

2010-04-08 Thread Raymond Wan
Hi John/Philip, Thank you both for your comments -- I have to admit that this wasn't something that I thought about but it should have been. I'm sure as I progress, this would have been an annoying bug to locate... Thank you for saving me some stress! :-) Ray John W. Krahn wrote: Philip

Re: Getting a subroutine reference from an object instance

2010-04-08 Thread Peter Scott
On Thu, 08 Apr 2010 21:37:10 +0300, Shlomi Fish wrote: > On Thursday 08 Apr 2010 17:19:39 Peter Scott wrote: >> On Wed, 07 Apr 2010 18:23:25 +0200, Eric Veith1 wrote: >> > this is probably going to be quick one. I know how to get an >> > subroutine reference under "normal" circumstances, but I don'

Re: Getting a subroutine reference from an object instance

2010-04-08 Thread Peter Scott
On Thu, 08 Apr 2010 21:08:54 +0200, Eric Veith1 wrote: > Shlomi Fish wrote on 04/08/2010 08:37:10 PM: >> > Uh, what are you really trying to do? There are helper modules that > make >> > using attributes much easier. >> >> Yes, I'm wondering about it too. > > I'm trying to use method attributes

Re: about beginner perl site and developing skill

2010-04-08 Thread Harry Putnam
Rene Schickbauer writes: > Would you be interested in helping out in the Maplat Web Framework? I'm sorry, I still don't really have a feel for what is entailed here and suspect I may not, until I do get involved and you show me something that needs doing that I may have enough know-how to do. S

Re: AW: about the various styles of `open'

2010-04-08 Thread Harry Putnam
Shawn H Corey writes: > Harry Putnam wrote: >> I don't mean to pound this to death, but does that mean then that >> there are no good uses of 2 arg opens? >> >> >> Regarding perlopentut, I've been able to follow about a 1/10 of what >> I've read so far, but I must say that many (of at least the e

Re: Undefined Subroutine

2010-04-08 Thread Jim Gibson
On 4/8/10 Thu Apr 8, 2010 2:48 PM, "Ron Wingfield" scribbled: > #!/usr/bin/perl -wT > use strict; > use warnings; > use CGI; > use CGI::Carp qw(fatalsToBrowser); > my $q = new CGI; > > sub whatever { > print "Got into \"whatever's\" subroutine $_[0]"; > } > print $q->header, > $q->st

Undefined Subroutine

2010-04-08 Thread Ron Wingfield
#!/usr/bin/perl -wT # #sub_test.pl . . .just a proof-of-concept # to get subroutines to be recognized. use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; #- #my $con = $q->param('c

Re: Decimal representation of binary file (unpack)

2010-04-08 Thread Alan Haggai Alavi
On 8 April 2010 11:00, Raymond Wan wrote: > > Hi all, > > I would like to read in a binary file and extract the 4-byte ints from it. >  Under Linux, something like "od -t uI".  I got it working as follows: > > > my $buffer = ; > my @buffer = split //, $buffer; > for (my $i = 0; $i < length ($buffe

Re: AW: about the various styles of `open'

2010-04-08 Thread Shawn H Corey
Harry Putnam wrote: I don't mean to pound this to death, but does that mean then that there are no good uses of 2 arg opens? Regarding perlopentut, I've been able to follow about a 1/10 of what I've read so far, but I must say that many (of at least the early) examples appear to be 2 arg opens.

Re: encrypted file

2010-04-08 Thread Akhthar Parvez K
Well, I am offcourse not trying to prevent root from accessing something. It's like threatening your owner that you won't give the duplicate key back. Even an idiot wouldn't do that! :-D Actually this script would be on the application side and will be run by the user who the application runs as

RE: [Was XS linker]

2010-04-08 Thread Pry, Jeffrey
>Indeed. Patience and a willingness to repeat one's self was one of >this list assets but that seems to be in short supply these days. We >also seem to have lost one or two regular contributors. >On a more positive note, I think the decrease in volume might be >because there are a lot of other li

Re: AW: about the various styles of `open'

2010-04-08 Thread Harry Putnam
Shawn H Corey writes: > You can use the 3-argument open for pipes: > > open my $ls_fh, '-|', 'ls' or die "could not open ls pipe: $!\n"; > >> >> But if so then all the problems discussed here come into play again. >> >> It seems like the redirect operator inclusion is what makes the open >> saf

Re: Getting a subroutine reference from an object instance

2010-04-08 Thread Eric Veith1
Shlomi Fish wrote on 04/08/2010 08:37:10 PM: > > Uh, what are you really trying to do? There are helper modules that make > > using attributes much easier. > > Yes, I'm wondering about it too. I'm trying to use method attributes to get a certain behaviour with some syntactic sugar. Like, for

Re: Getting a subroutine reference from an object instance

2010-04-08 Thread Shlomi Fish
On Thursday 08 Apr 2010 17:19:39 Peter Scott wrote: > On Wed, 07 Apr 2010 18:23:25 +0200, Eric Veith1 wrote: > > this is probably going to be quick one. I know how to get an subroutine > > reference under "normal" circumstances, but I don't know how to get one > > from an object instance. Like: > >

Re: encrypted file

2010-04-08 Thread Rob Coops
On Thu, Apr 8, 2010 at 7:34 PM, Akhthar Parvez K wrote: > Hello, > > I'm gonna write a Perl script to enhance the security within an > application. This script would ideally checks the string passed to the > application with the data in the file and take actions appropriately. I > would like to en

Re: [Was XS linker]

2010-04-08 Thread Dermot
On 8 April 2010 18:51, Mike McClain wrote: >> >> Current list volume is a fraction of what it has been. > > Amen and it seems a shame to me. > >> I'm simply suggesting that your idea of what is welcome here is more >> narrow than has traditionally been the case.  And in the end it doesn't >> reall

Re: XS linker

2010-04-08 Thread Mike McClain
Admittedly I'm more a lurker here than a contributer, primarily because 1) I'm still a beginner, I don't make my living with Perl, 2) I'm on dialup and read the digest usually in the evenings and 3) by the time I see a question I know the answer to there has already been three answers posted, o

RE: Fifo Queue Job Scheduler

2010-04-08 Thread Joseph L. Casale
>That depends on exactly what you are trying to do, how big of a job >queue it should be, if there needs to be any feedback (like job status >and error messages) and such. > >I for myself would go for a database backed system, as this implicitly >avoids things like race conditions and file lock

encrypted file

2010-04-08 Thread Akhthar Parvez K
Hello, I'm gonna write a Perl script to enhance the security within an application. This script would ideally checks the string passed to the application with the data in the file and take actions appropriately. I would like to encrypt the file so that the users wouldn't see the contents in the

Re: Decimal representation of binary file (unpack)

2010-04-08 Thread John W. Krahn
Philip Potter wrote: On 8 April 2010 06:30, Raymond Wan wrote: I would like to read in a binary file and extract the 4-byte ints from it. Under Linux, something like "od -t uI". I got it working as follows: my $buffer = ; my @buffer = split //, $buffer; for (my $i = 0; $i < length ($buffer

Re: AW: about the various styles of `open'

2010-04-08 Thread Shawn H Corey
Harry Putnam wrote: Philip Potter writes: The three argument form: open my $fh, '<', 'rm -rf ~ |' or die "could not open rm -rf ~ |: $!"; doesn't have this problem. It will try to open a file with quite a funny name, but because the mode is chosen my the second argument and not by a user-sup

Re: AW: about the various styles of `open'

2010-04-08 Thread Harry Putnam
Philip Potter writes: > The three argument form: > > open my $fh, '<', 'rm -rf ~ |' or die "could not open rm -rf ~ |: $!"; > > doesn't have this problem. It will try to open a file with quite a > funny name, but because the mode is chosen my the second argument and > not by a user-supplied strin

Re: Getting a subroutine reference from an object instance

2010-04-08 Thread Peter Scott
On Wed, 07 Apr 2010 18:23:25 +0200, Eric Veith1 wrote: > this is probably going to be quick one. I know how to get an subroutine > reference under "normal" circumstances, but I don't know how to get one > from an object instance. Like: > > ---%<--- > my $foo = My::Foo->new("bleh"); > > # Calling

AW: about beginner perl site and developing skill

2010-04-08 Thread Thomas Bätzler
> What is a CMS? http://en.wikipedia.org/wiki/Content_management_system > What is meant by chipcards? http://en.wikipedia.org/wiki/Chip_card HTH, Thomas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

AW: String length limits?

2010-04-08 Thread Thomas Bätzler
Hi, Chris Coggins asked: > Is there a limit to the length of a string in perl? I'm combining about > 200 pieces of data into a single string and writing the string to a > file and am getting some weird behaviors every once in a while. Does perl > have a limit on the length of a string it writes t

Re: AW: about the various styles of `open'

2010-04-08 Thread Shawn H Corey
Brandon McCaig wrote: Actually, forget the malicious users. If a script is being invoked directly by a user then it'll probably not be malicious (who would remove their home directory, and if they were going to why would they use your script to do it?). The problem isn't in scripts the users ru

Re: How to install modules

2010-04-08 Thread Rob Coops
On Thu, Apr 8, 2010 at 2:14 PM, Jins Thomas wrote: > On Thu, Apr 8, 2010 at 5:31 PM, wrote: > > > > > > > > > Dear All > > > > I had a problem installing modules in office,why because in office we use > > proxy credentials to access internet.But i don't know how to do > it.So,please > > help me

Re: about beginner perl site and developing skill

2010-04-08 Thread Harry Putnam
Rene Schickbauer writes: [...] Thanks for a more fleshed out description. > So, it's not a tool for setting up a CMS, What is a CMS? >. . . . . . . . . . . . . . . . . . . . . Blog or this-is-my-dog > website. I use it mainly to develop specific applications. For > example, one of the projec

Re: String length limits?

2010-04-08 Thread Rob Coops
On Thu, Apr 8, 2010 at 2:26 PM, Chris Coggins wrote: > Is there a limit to the length of a string in perl? I'm combining about 200 > pieces of data into a single string and writing the string to a file and am > getting some weird behaviors every once in a while. Does perl have a limit > on the le

Re: How to install modules

2010-04-08 Thread Jins Thomas
On Thu, Apr 8, 2010 at 5:31 PM, wrote: > > > > Dear All > > I had a problem installing modules in office,why because in office we use > proxy credentials to access internet.But i don't know how to do it.So,please > help me with the procedure. > > Thanks, > Phanikumar > > > Are you trying to inst

String length limits?

2010-04-08 Thread Chris Coggins
Is there a limit to the length of a string in perl? I'm combining about 200 pieces of data into a single string and writing the string to a file and am getting some weird behaviors every once in a while. Does perl have a limit on the length of a string it writes to a simple file? -- To unsubsc

How to install modules

2010-04-08 Thread zeetu . qa
Dear All I had a problem installing modules in office,why because in office we use proxy credentials to access internet.But i don't know how to do it.So,please help me with the procedure. Thanks, Phanikumar

Re: Decimal representation of binary file (unpack)

2010-04-08 Thread Philip Potter
On 8 April 2010 06:30, Raymond Wan wrote: > > Hi all, > > I would like to read in a binary file and extract the 4-byte ints from it. >  Under Linux, something like "od -t uI".  I got it working as follows: > > > my $buffer = ; > my @buffer = split //, $buffer; > for (my $i = 0; $i < length ($buffe

Re: How to check modules ... ???

2010-04-08 Thread C.DeRykus
On Apr 7, 6:28 pm, newbie01.p...@gmail.com (newbie01 perl) wrote: > Hi all, > > Running perl -V gives output below which is the path to the modules that the > default perl have access to. Is there any way to display the installed > modules that are available to use so that at least it will not be t

Re: Fifo Queue Job Scheduler

2010-04-08 Thread Rene Schickbauer
Joseph L. Casale wrote: I have been pointed to a ksh script called qjob that implements a fifo queue. As none of our servers use or have ksh, this presents a bit of a problem as it also leverages a ksh implementation of a counting semaphore which would take ages to rewrite. I figure this is a jo

Re: Using References in Modules within threads

2010-04-08 Thread Rene Schickbauer
Steve Bertrand wrote: Hi! Well, working on windows does have its benefits. When something goes horribly wrong, you can always point the finger to Redmont and your users will believe you (not matter who's fault it really is)... I can tell you work in an Enterprise environment already ;) Yeah

Re: about beginner perl site and developing skill

2010-04-08 Thread Rene Schickbauer
Harry Putnam wrote: Rene Schickbauer writes: Would you be interested in helping out in the Maplat Web Framework? It may take me a while even to figure out what it is. It's a framework to write software with a web-based User interface. This isn't quite the same as a website-only framework,