perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  No such file or directory         


Author: Anthony Brooke
Date: May 20, 2008 23:43

Hello, I know that this is a very common problem, but I am very sure that the file exist in that directory, also its permission is -rwxrwxrwx , why does it give such an error ? What are the other potential problems that cause this ? Thanks

Send instant messages to your online friends http://uk.messenger.yahoo.com
1 Comment
  Perl beginner seeks help         


Author: Mr. low level newb of stupidity ;
Date: May 20, 2008 22:30

hello, I am a, well, not a beginner per say, but rather still a
learner of Perl. I guess you could call me a beginner. anyway, I need
some help with my robot. it is not really Perl help, but you guys
could help with the code, too. I am making a talking robot like
A.L.I.C.E., a robot designed by a guy named Richard s. Wallace, and I
am having trouble deciding what to make him know. he knows basic
stuff, and the coding is somewhat fine, but I was wondering if you
guys could help me out here. he knows how to respond to his and
hellos, also more interesting stuff like his birthday and to
understand when you say something like 'I feel like crap' or
something, but he is still kinda dumb. any advice on how to improve
him with knowledge would be appreciated.

P.S. the code for what to say and what to say it to is regular
expressions. tell me if you have a better method.
e.g. elsif($reply =~ /\bwhat\b/ and $reply =~ /\btime\b/){
print"I surely dont know the time.";
talk();
}
talk is the subroutine that asks for input.
2 Comments
  passing args to sub wanted         


Author: Oryann9
Date: May 20, 2008 17:00

Greetings,

I posted this question on perlmonks and received some great help, specifically from mirod but his recent suggestion is still not working.

Problem: This code only works when I hard-code the size to
search for in the routine. I try to pass arguments using @_, but it
does not work. How do I pass $size_input so wanted sees and uses it?

Mirod's help:

You need to pass an additional parameter to wanted. The way to do this is to use a closure: File::Find::find({wanted => sub { wanted( $size_input); } }, $fs_input ) ;. This way wanted is called by the anonymous sub, and gets passed $size_input.
See Why I hate File::Find and how I (hope I) fixed it for more info.

I read the "why i hate...." two and three times and yet still cannot get it to work.
thank you in advance!
http://www.perlmonks.org/?node_id=687008

use strict;
use warnings;
use File::Find;

my ( @root_files, @large_files, %%mounts, @mounts, ) ;
use vars qw/*name *dir *prune/ ;
*name = *File::Find::name ;
*dir = *File::Find::dir ;
*prune = *File::Find::prune ;
Show full article (2.40Kb)
1 Comment
  Installing xls2csv         


Author: John Jack
Date: May 20, 2008 14:15

Hi

I hope someone will help me here.

I tried installing xls2csv. However, this conversion tool, requires the
following modules to be installed.
- Locale::Recode
- Spreadsheet::ParseExcel
- Spreadsheet::ParseExcel::FmtUnicode
- Text::CSV_XS
- Unicode::Map

I couldn't get through with CPAN. My server is connected to the net through
our country ISP. Therefore, I have no proxy server set on my LAN.

Can someone help me on what exactly I should do.

Thanks
John
no comments
  How to measure the efficiency, load & performance of a script?         


Author: Timbo
Date: May 20, 2008 07:31

Hi all,

I was just wondering if any general tools / modules exist to help
measure the efficiency of any code.
I know that the Learning Perl books cover the theory but was wanting
to know if there were good measuring methods available.
Its pretty easy to figure out the time a script took to run but
knowing the load on the cpu, the overhead from all the loops &
variables, arrays & hashes, etc would also be nice to know.
Any suggestions appreciated.
Thanks in advance.
t.
3 Comments