Re: File::Find usage

2010-07-24 Thread John W. Krahn
Unknown User wrote: I have this script to find out where a perl module is on my machine: [unkn...@knowme:~/bin]$ cat findmodule #!/usr/bin/perl -w use File::Find; use strict; if ($ENV{"INC"} ) { # INC=PATH1:PATH2 ./getmodule perldoc perlrun [ SNIP ] PERL5LIBA list

Re: cgi sqlite error not able to write data in database

2010-07-24 Thread Jeff Pang
2010/7/24 perl : > > This is the Error .. got from Apache ... > DBD::SQLite::db do failed: unable to open database file at > Specify the full path to the sqlite database file. You may know the absolute path of it, but Apache won't. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe,

Get variable name from a list

2010-07-24 Thread Mike Martin
Is this possible? I am trying to populate a hash with keys as variable name and value as variable value eg: my %hash; foreach my $w ($filename,$file_start,$file_time,$video_track,$audio_track,$quality,$sync){ my $hash{$key}= $w; } -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: Get variable name from a list

2010-07-24 Thread Jeff Pang
2010/7/24 Mike Martin : > Is this possible? > > I am trying to populate a hash with keys as variable name and value as > variable value eg: > my %hash; > foreach my $w > ($filename,$file_start,$file_time,$video_track,$audio_track,$quality,$sync){ > my $hash{$key}=  $w; > That would be a hash slic

Re: Get variable name from a list

2010-07-24 Thread Uri Guttman
> "JP" == Jeff Pang writes: JP> 2010/7/24 Mike Martin : >> Is this possible? >> >> I am trying to populate a hash with keys as variable name and value as >> variable value eg: >> my %hash; >> foreach my $w ($filename,$file_start,$file_time,$video_track,$audio_track,$quality,$s

Re: Get variable name from a list

2010-07-24 Thread Jeff Pang
2010/7/24 Mike Martin : >> > > This is how I worked round the issue (didn't think of hash slice) > > foreach my $w (qw/$file_start $file_time $video_track $audio_track > $quality $sync $sync_box $qual_box $vid_box $aud_box $time_label > $times $file_hbox/) #Use qw to turn variable name into a stri

Re: cgi sqlite error not able to write data in database

2010-07-24 Thread perl
On 07/24/2010 10:48 AM, Owen wrote: > >> On 07/24/2010 08:53 AM, Owen wrote: >> >>> hi, it got some error while adding data into sqlite through Perl script on Apache ... script can able to read the file but not able to write .. I have set the permissions

A new recipe as arrived

2010-07-24 Thread marcos rebelo
Hi all Trying to make exceptions handling a little more clear, or much more frightening. http://sites.google.com/site/oleberperlrecipes/recipes/06-error-handling/00---simple-exception This also starts the 00-.* recipes with the very basic in every area. Opinions are always welcome in perl-reci.

perldiver

2010-07-24 Thread Unknown User
Anybody know where i can get perldiver from? The main site does not seem to be working. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perldiver

2010-07-24 Thread Unknown User
Ah it is working now. On Sat, Jul 24, 2010 at 12:24 PM, Unknown User wrote: > Anybody know where i can get perldiver from? The main site does not > seem to be working. > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://lea

Re: A new recipe as arrived

2010-07-24 Thread Jeff Pang
2010/7/25 marcos rebelo : > Hi all > > Trying to make exceptions handling a little more clear, or much more > frightening. > > http://sites.google.com/site/oleberperlrecipes/recipes/06-error-handling/00---simple-exception > > This also starts the 00-.* recipes with the very basic in every area. >

Re: A new recipe as arrived

2010-07-24 Thread marcos rebelo
On Sun, Jul 25, 2010 at 12:33 AM, Jeff Pang wrote: > 2010/7/25 marcos rebelo : >> Hi all >> >> Trying to make exceptions handling a little more clear, or much more >> frightening. >> >> http://sites.google.com/site/oleberperlrecipes/recipes/06-error-handling/00---simple-exception >> >> This also s