perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
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
  XML::Simple Environment errors         


Author: Robert Gorrebeeck
Date: Jul 23, 2008 08:10

Hello all

We recently migrated over to a new server and installed the new version
of XML::Simple and am getting errors when I try to parse an XML file. I
get an error stating:

XMLin() requires either XML::SAX or XML::Parser

I have verified that both modules are installed.

What is strange is when I try to get the version of XML::Parser or
XML::SAX I get the following error:

bash-3.2$ perl -mXML::Parser -e 'print
"$XML::Parser::VERSION"'

Can't load
'/usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/XML/Parser/Expat
/Expat.so' for module XML::Parser::Expat: ld.so.1: perl: fatal:
libgcc_s.so.1: open failed: No such file or directory at
/usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm line 230.

at /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/XML/Parser.pm line
14

Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/XML/Parser.pm line 14.
Show full article (2.58Kb)
no comments
  Window for Video output...         


Author: Michelle Konzack
Date: Jul 23, 2008 01:32

Hello,

I am trying to make a wmdock.app (64x64 pixel) and I have the need for a
function which open a window which show the captured output of a Video-
Telephonie stream of a GSM-Modem.

Now my question: Is there a perl lib which can do such stuff?

The window should contain only the Video and controled by the wmdock.app.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant

--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Show full article (1.03Kb)
no comments
  how to reinvent "tar xvfz" with perl?         


Author: Siegfried Heintze
Date: Jul 22, 2008 15:45

I need to automate some stuff and decided to use perl.

I have cygwin perl and activestate perl.

Below is my attempt. It does not work because I don't have perlIO::gzip installed.

When I tried

/bin/Perl -MCPAN -e 'install PerlIO::gzip'

The tests fail and it won't install.

When I try activestate perl's ppm.bat I don't see an any modules when I search for gzip (except for one called CGI-WebGzip which did not look like what I wanted).

Can someone help me reinvent "tar xvfz"?

Thanks!
Siegfried

#!c:/perl/bin/perl

#
# $Log$
#
# Begin commands to execute this file using Perl with bash
# ./untar.pl ..\\Archive-Tar-1.38.tar.gz >..\\Archive-Tar-1.38.tar
# End commands to execute this file using Perl with bash
#
Show full article (1.06Kb)
1 Comment
  Having trouble with cpan         


Author: Barry Benowitz
Date: Jul 22, 2008 10:53

Hi All,

I am having trouble with CPAN to update my perl packages. Here is the
error:

[root@gemini ~]# cpan

cpan shell -- CPAN exploration and modules installation (v1.7602)

ReadLine support enabled
cpan> install String::scanf

CPAN: Storable loaded ok

Going to read /home/barryb/.cpan/Metadata

Database was generated on Thu, 12 Jun 2008 12:06:48 GMT

Going to read /home/barryb/.cpan/sources/authors/01mailrc.txt.gz

CPAN: Compress::Zlib loaded ok

Can't call method "value" on an undefined value at
/usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.
cpan>

Has anyone seen this or have an idea for how to solve it.

Barry
1 Comment
  Re: Howto Pull files from two diff machines         


Author: Andy
Date: Jul 22, 2008 09:07

Hiya Guys

You guys have been previously helping me with a script.

"Debug Please" Was the title.

It's working as far as we can tell.

But I need to be able to ftp to two machines and pull down xferlog

Therefore each xferlog would be downloaded as xferlog.host.month.log

Then either joined as one and then processed ?

Now sure , What would be the best way to go about that ?

Any directions would be appreciated.

I would post the code, but I am not sure you guys would need a whole
code ....

-Ty
no comments
  fetching to docs using wget         


Author: A B
Date: Jul 22, 2008 05:53

Hi,

I am trying to fetch various docs from server using wget. Below is the code
Files are downloading but of 0 size :(

Am i missing any thing

adave@adave:~/adave> cat fetch.pl
open(S,"<./source.txt") || die "Failed to open file 'source.txt' $!";
while()
{
Show full article (1.31Kb)
1 Comment
  DBI error         


Author: Panda-X
Date: Jul 21, 2008 20:48

Hi,

I've got this error, anything I can do ?

"Can't locate auto/DBI/data_source.al in @INC "

Code :

use DBI;
my @dataSource = DBI -> data_source ( "mysql" ) ;

and if I change the as this :

use DBI;
my $dbh = DBI -> connect ( "dbi:mysql", $adm, $pass ) ;

I got this error :
Can't connect to data source 'dbi:mysql' because I can't work out what
driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the
DBI_DRIVER env var is not set) at quickPerl.pl line 8

I have MySQL server installed and it works well with other applications.

Thanks for help!
3 Comments
  parsing a large excel file         


Author: Anjan Purkayastha
Date: Jul 21, 2008 18:41

to all,
i have installed Spreadshee::ParseExcel to parse some large excel data
files.
Here is the problem I'm facing. I need to parse data from columns M to P and
rows 10 to 43000. Now I know that there is a PrintArea method that can print
an area of a worksheet specified in (start row, start col, end row, end
col). However I'm having difficulty in specifying these parameters correctly
for the PrintArea method. I'm also not sure what the output is going to look
like.
does anyone in this forum have any pointers?
all advice will be appreciated.
tia,
anjan
Show full article (0.78Kb)
5 Comments
  google suggest         


Author: Andrew.Tsvetinskiy
Date: Jul 21, 2008 09:40

hI2all.I have found working script of google suggest script! but in
php... could you give me working in perl?

or maybe found error in my?

php
--
$db = new mysqli('localhost', 'root' ,'', 'countries');

if(!$db) {
echo 'ERROR: Could not connect to the database.';
} else {
if(isset($_POST['queryString'])) {
$queryString = $db->real_escape_string($_POST['queryString'])
if(strlen($queryString) >0) {
Show full article (1.82Kb)
no comments
  RE: OO method query         


Author: T Baetzler
Date: Jul 21, 2008 08:24

Dermot googlemail.com> asked:
> I am trying my hand at creating an package and am a bit
> unsure about some of the inner working of what I've done.
> Q3) In new, can I allow for the object create being done with
> more argument like my $page = new sendData(type => 'a5'). How
> can you detect named arguments when a object is being created.
> I have a new method
>
> sub new {
> my $class = shift;

# make arguments to new() into a hash
my %%args = @_;
> my $self = {};

# copy relevant named arguments from hash to $self
# while setting sensible default values.
$self->{'type'} = $args{'type'} || 'a4';
Show full article (1.09Kb)
no comments
 
1 2 3 4 5 6 7 8 9