Re: explanation of @INC

2009-01-23 Thread Scott Haneda
On Jan 22, 2009, at 10:54 PM, Raymond Wan wrote: Scott Haneda wrote: ASSP installed. I edit the ASSP source files to change the first line from: #!/usr/bin/perl -- to #!/opt/local/bin/perl -- ... run as `perl testfile.pl` it will fail, with error that it can not find email valid run as

Re: explanation of @INC

2009-01-23 Thread Raymond Wan
Hi Scott, Ok, I see what you mean now -- thanks for the clarification! Scott Haneda wrote: On Jan 22, 2009, at 10:54 PM, Raymond Wan wrote: Scott Haneda wrote: ... As you can see, the /opt/local/perl lists the @INC paths, and 100% of them are in /opt/local so why when I use #!/opt/local/bi

Re: explanation of @INC

2009-01-23 Thread Gunnar Hjalmarsson
Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the first line from: #!/usr/bin/perl -- to #!/opt/local/bin/perl -- When I run

a question related to file selection

2009-01-23 Thread Li, Aiguo (NIH/NCI) [E]
Hi all, I need copy files from a directory daily to a folder. How can I select files based on dates that were created? Thanks, AG Lee

Re: a question related to file selection

2009-01-23 Thread Ralf Peng
2009/1/23 Li, Aiguo (NIH/NCI) [E] : > Hi all, > > > > I need copy files from a directory daily to a folder. How can I select > files based on dates that were created? > for copying a file, use File::Copy: http://search.cpan.org/~nwclark/perl-5.8.9/lib/File/Copy.pm to get file's last modification

Re: explanation of @INC

2009-01-23 Thread Scott Haneda
On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the first line from:

Re: explanation of @INC

2009-01-23 Thread Scott Haneda
Hello everyone, I believe I am onto some sort of resolution, I will come back to explain when I have figured it out. I did not want a lot of time spent by people replying when this may end up being something silly with my config. Thank you all for your suggestions, I will let you know. On

Re: explanation of @INC

2009-01-23 Thread John W. Krahn
Scott Haneda wrote: On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the

Re: explanation of @INC

2009-01-23 Thread Gunnar Hjalmarsson
Scott Haneda wrote: On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: Scott Haneda wrote: ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the

Is there a way to un-install modules?

2009-01-23 Thread Bruce Ferrell
I know this is going to sound odd, but I've installed some modules using the CPAN module and I now want to uninstall them or put them into a state where they are no longer detected. Is there a way to do this? TIA Bruce -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: Is there a way to un-install modules?

2009-01-23 Thread Owen
> I know this is going to sound odd, but I've installed some modules > using > the CPAN module and I now want to uninstall them or put them into a > state where they are no longer detected. Is there a way to do this? Probably the easiest way is to find the module which will be called something

Re: a question related to file selection

2009-01-23 Thread Owen
On Thu, 22 Jan 2009 17:16:00 -0500 "Li, Aiguo (NIH/NCI) [E]" wrote: > Hi all, > > > > I need copy files from a directory daily to a folder. How can I > select files based on dates that were created? It will depend on the file naming format, for example, if

Re: explanation of @INC

2009-01-23 Thread ben perl
Thanks Everyone, This does help.. -Bandeep On Fri, Jan 23, 2009 at 9:48 AM, Gunnar Hjalmarsson wrote: > Scott Haneda wrote: > >> On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: >> >>> Scott Haneda wrote: >>> ASSP required about 15 perl modules, I installed them, or wrote new po

Help on VBTK module

2009-01-23 Thread HASSAN Kamrul
Could you assist me on followings: I am trying to run a simple test to get some understanding of VBTK module but I am getting following errors Error: Name "VBTK::Controller::OLDSTDERR" used only once: possible typo at line 347. testing 135.... 20090123-15:55:50 - Error: Bad result fro

Loading results of pattern match into an array - help please

2009-01-23 Thread jeffqtate
I am trying to split a very long fixed lenght record into its constituents, and then load them into an array. I have patterns like '^ (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. I am stumped however as to how to get them into an array in a general way. With 'use strict' turne

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Mr. Shawn H. Corey
On Fri, 2009-01-23 at 11:57 -0800, jeffqt...@gmail.com wrote: > I am trying to split a very long fixed lenght record into its > constituents, and then load them into an array. I have patterns like '^ > (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. I > am stumped however as to h

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Gunnar Hjalmarsson
jeffqt...@gmail.com wrote: I am trying to split a very long fixed lenght record into its constituents, and then load them into an array. I have patterns like '^ (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. my @array = $record =~ /^(.{3})(.{24})(.{6}).../; I havebasic

Re: Loading results of pattern match into an array - help please

2009-01-23 Thread Owen
> I am trying to split a very long fixed lenght record into its > constituents, and then load them into an array. I have patterns like > '^ > (.{3})(.{24})(.{6})...' which gets teh fields into $1, $2, $3 etc. I > am stumped however as to how to get them into an array in a general > way. With 'use s

Re: webmin module, no packages

2009-01-23 Thread Gunnar Hjalmarsson
John Refior wrote: The problem I am facing right now is that webmin doesn't use packages or classes (it is not object-oriented). Instead, API functions and variables are customarily accessed with 'do' or 'require', and variables are global accross files. Local variables in the modules I've look