Perl vs CGI

2010-11-15 Thread Saurabh Bhatnagar
Hello, This is my first post. I have perl code to strip the root folder in a path. ($shortpath = $fullpath) =~ s|/[^/]+||; However, this gives syntax errors when used in my CGI script that calls my perl script. Can I have the CGI equivalent? Warm regards Saurabh -- To unsubscribe, e-mail:

Re: Perl vs CGI

2010-11-15 Thread Shawn H Corey
On 10-11-15 11:55 AM, Saurabh Bhatnagar wrote: However, this gives syntax errors when used in my CGI script that calls my perl script. What is the error? What is the OS? What is the server? When dealing with file systems, it's best to use the module File::Spec which comes with Perl. See

array problem

2010-11-15 Thread shawn wilson
so, i'm thinking i'm not understanding references here again, but here's what i have. i fill in my array here: my $worksheetin = $workbookin-worksheet(0); my ( $row_min, $row_max ) = $worksheetin-row_range(); my ( $col_min, $col_max ) = $worksheetin-col_range(); for my $row ( $row_min ..

Re: array problem

2010-11-15 Thread shawn wilson
too much freaking data. i increased my scroll buffer and found that i do get data, just not the last 1k lines err On Mon, Nov 15, 2010 at 12:33 PM, shawn wilson ag4ve...@gmail.com wrote: so, i'm thinking i'm not understanding references here again, but here's what i have. i fill in

Re: array problem

2010-11-15 Thread Uri Guttman
sw == shawn wilson ag4ve...@gmail.com writes: swmy $worksheetout = $workbookout-add_worksheet( '$year' ); why are you quoting $year? that doesn't do what you think it does. in fact it is a bug. you aren't checking if you get results out of that call which is another problem. uri -- Uri

Re: array problem

2010-11-15 Thread shawn wilson
On Mon, Nov 15, 2010 at 1:54 PM, Uri Guttman u...@stemsystems.com wrote: sw == shawn wilson ag4ve...@gmail.com writes: swmy $worksheetout = $workbookout-add_worksheet( '$year' ); why are you quoting $year? that doesn't do what you think it does. in fact it is a bug. you aren't

HEY

2010-11-15 Thread William
http://goo.gl/WOrNy

Re: Perl vs CGI

2010-11-15 Thread Jeff Pang
2010/11/16 Saurabh Bhatnagar saurabh.b.bhatna...@oracle.com: Hello, This is my first post. I have perl code to strip the root folder in a path. ($shortpath = $fullpath) =~ s|/[^/]+||; You may want to try: File::Basename -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For