Re: website vs web app

2011-09-16 Thread Chris Stinemetz
On Fri, Sep 16, 2011 at 6:10 PM, Rajeev Prasad wrote: > why do i need a web app? becuase of size of my project? I mean if it is going > to be  a very big website with lot of pages and tables etc. should i have a > webapp? > > apache and cgi wont cut it? (alongwith other technologies used commonl

website vs web app

2011-09-16 Thread Rajeev Prasad
why do i need a web app? becuase of size of my project? I mean if it is going to be  a very big website with lot of pages and tables etc. should i have a webapp?   apache and cgi wont cut it? (alongwith other technologies used commonly in websites)

Re: Clarification on the use of "my"

2011-09-16 Thread Randal L. Schwartz
> "Rob" == Rob Dixon writes: Rob> No. This order of nastiness cannot be done in private. Your words are crude Rob> and brutal, and backed by no one here. Rob> ON list. [presumably private message made public deleted] *NOW* you've violated a very fundamental rule of mailing list etiquette.

Re: Clarification on the use of "my"

2011-09-16 Thread Randal L. Schwartz
> "Rob" == Rob Dixon writes: Rob> All software comcepts exist only in someone's imagination. Brandon and I Rob> can imagine what 'module scope' means and I am surprised that you Rob> cannot. In the end there are only global declarations and scoped Rob> declarations, and I believe you are wron

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Uri Guttman
> "BM" == Brandon McCaig writes: BM> On Fri, Sep 16, 2011 at 2:55 PM, Paul Johnson wrote: >> map EXPR, @a is just the same as map { EXPR } @a. BM> The part that I find confusing is that EXPR is evaluated against each BM> $_, as opposed to once when map is called, passing the resulti

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Uri Guttman
> "PJ" == Paul Johnson writes: PJ> On Fri, Sep 16, 2011 at 02:27:08PM -0400, Brandon McCaig wrote: >> my @column_headers = map trim($_), split /\|/, $header_line; >> Using an EXPR with map is even more confusing to me, but it seems to >> work here so I'll leave it at that. ;D PJ>

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Brandon McCaig
On Fri, Sep 16, 2011 at 2:55 PM, Paul Johnson wrote: > map EXPR, @a is just the same as map { EXPR } @a. The part that I find confusing is that EXPR is evaluated against each $_, as opposed to once when map is called, passing the resulting value into map. :) Obviously it's just one of the many ma

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Paul Johnson
On Fri, Sep 16, 2011 at 02:27:08PM -0400, Brandon McCaig wrote: > my @column_headers = map trim($_), split /\|/, $header_line; > Using an EXPR with map is even more confusing to me, but it seems to > work here so I'll leave it at that. ;D map EXPR, @a is just the same as map { EXPR } @a. Some

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Jim Gibson
On 9/16/11 Fri Sep 16, 2011 11:27 AM, "Brandon McCaig" scribbled: > On Fri, Sep 16, 2011 at 11:32 AM, Brandon McCaig wrote: >>    my @column_headers = map { $_ = trim($_); $_; } >>            split /\|/, $header_line; > > Sorry, that should be: > > my @column_headers = map trim($_), split

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Brandon McCaig
On Fri, Sep 16, 2011 at 11:32 AM, Brandon McCaig wrote: >    my @column_headers = map { $_ = trim($_); $_; } >            split /\|/, $header_line; Sorry, that should be: my @column_headers = map trim($_), split /\|/, $header_line; I'm still relatively new to using BLOCKs within statements li

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Shlomi Fish
Hi Brandon, On Fri, 16 Sep 2011 11:32:16 -0400 Brandon McCaig wrote: > On Thu, Sep 15, 2011 at 3:48 PM, Rob wrote: > > I have a file of test results it is formatted as follows: > > > >        School |fname| lname | sub| testnum|score| grade|level > > MLK School | John | Smith | RE | Test 1| 95|

Re: File test failed!

2011-09-16 Thread Magnus Woldrich
On 2011-09-16 17:53, y...@eisoo.com wrote: I want to test if a file exists or it is a link or not You test for a regular file with -f. You test for existance with -e. You test for symbolic links with -l. See perldoc -f -x for more information. -- │ Magnus Woldrich │ m...@japh.se │ http:/

Re: Files and Arrays - Search for values and write to the right

2011-09-16 Thread Brandon McCaig
On Thu, Sep 15, 2011 at 3:48 PM, Rob wrote: > I have a file of test results it is formatted as follows: > >        School |fname| lname | sub| testnum|score| grade|level > MLK School | John | Smith | RE | Test 1| 95| A | Prof > MLK School | John | Smith | RE | Test 2| 97| A | Prof > MLK School | J

Re: File test failed!

2011-09-16 Thread Shlomi Fish
Hi YYQ, On Fri, 16 Sep 2011 17:53:25 +0800 "y...@eisoo.com" wrote: > Hi, All: > > I want to test if a file exists or it is a link or not, the code is: > #!/usr/bin/perl -w > > use strict; > use File::Basename; > use File::stat; > use Fcntl ':mode'; > > my $elfobj = $ARGV[0]; > > sub str

File test failed!

2011-09-16 Thread y...@eisoo.com
Hi, All: I want to test if a file exists or it is a link or not, the code is: #!/usr/bin/perl -w use strict; use File::Basename; use File::stat; use Fcntl ':mode'; my $elfobj = $ARGV[0]; sub strtrim () { #. } sub copyfile () { #. } my @deps = `ldd $elfobj`; foreach my $li

Re: how to use Net::OpenSSH::Parallel

2011-09-16 Thread salva
On Sep 14, 11:57 pm, rp.ne...@yahoo.com (Rajeev Prasad) wrote: > trying to use this module now. but i guess i have a very basic issue: > > currently i am running following in a loop for all hosts (and a inner loop > for all commands for a host): > >     my ($MFSSH) = Net::OpenSSH->new($HOST, >    

Files and Arrays - Search for values and write to the right

2011-09-16 Thread Rob
I have a file of test results it is formatted as follows: School |fname| lname | sub| testnum|score| grade|level MLK School | John | Smith | RE | Test 1| 95| A | Prof MLK School | John | Smith | RE | Test 2| 97| A | Prof MLK School | John | Smith | RE | Test 3| 93| A | Prof MLK School | Jo