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

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

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] l...@mail.nih.gov: 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

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.

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.pm

Re: a question related to file selection

2009-01-23 Thread Owen
20090123.blah.bz2, then you could collect all those files out of the directory with something like; opendir( DB_DIR, $db_dir ); # where $db_dir has been assigned earlier my @files = grep { /\d{8}/ } readdir(DB_DIR); You might then want to do the same for the receiving directory and then read FAQ4.41

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 nore...@gunnar.ccwrote: 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

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 from vbserver

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'

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 how

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

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

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