comp.lang.perl.misc
  Home FAQ Contact Sign in
Your Ad Here
comp.lang.perl.misc only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...


 Up
  FAQ 2.4 I copied the perl binary from one machine to another, but scripts don't work.         


Author: PerlFAQ Server
Date: Jan 31, 2008 18:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.4: I copied the perl binary from one machine to another, but scripts don't work.

That's probably because you forgot libraries, or library paths differ.
You really should build the whole distribution on the machine it will
eventually live on, and then type "make install". Most other approaches
are doomed to failure.

One simple way to check that things are in the right place is to print
out the hard-coded @INC that perl looks through for libraries:

%% perl -le 'print for @INC'

If this command lists any paths that don't exist on your system, then
you may need to move the appropriate libraries to these locations, or
create symbolic links, aliases, or shortcuts appropriately. @INC is also
printed as part of the output of

%% perl -V
Show full article (1.88Kb)
no comments
  Obscure baffling "module not exported" error: can someone help me find the cause?         


Author: Henry Law
Date: Jan 31, 2008 12:20

I have a bizarre problem with packages and I'm hoping that someone can
help me find out what I'm doing wrong because I'm utterly stumped.

The error is "not exported" for something that quite clearly is exported
(details follow). The error disappears when one of several particular
lines is deleted or commented out, one of which refers to a different
Perl module altogether, not used anywhere in any of the code except for
the "use" statement. And yet that completely unused module is specific
to the error: simply replacing it with another, equally unused, module
causes the error to disappear. Again, more details below.

It's the most perplexing thing I've seen in all my years of debugging
hardware and software systems and I'm forced to the conclusion that
there's some corruption in the Perl installation itself, especially
since the code compiles clean on another machine at ostensibly the same
level (though the offending machine is newly-built). If someone can even
point me in the direction of something to look at or try I'd be grateful.
Show full article (5.29Kb)
4 Comments
  FAQ 1.10 Can I do [task] in Perl?         


Author: PerlFAQ Server
Date: Jan 31, 2008 12:03

This is an excerpt from the latest version perlfaq1.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

1.10: Can I do [task] in Perl?

Perl is flexible and extensible enough for you to use on virtually any
task, from one-line file-processing tasks to large, elaborate systems.
For many people, Perl serves as a great replacement for shell scripting.
For others, it serves as a convenient, high-level replacement for most
of what they'd program in low-level languages like C or C++. It's
ultimately up to you (and possibly your management) which tasks you'll
use Perl for and which you won't.
Show full article (2.25Kb)
no comments
  Re: Magic for object constructor wanted         


Author: Michele Dondi
Date: Jan 31, 2008 08:56

On Wed, 30 Jan 2008 22:05:45 -0800 (PST), Koszalek Opalek
wrote:
>My code creates new objects and then populates them with
>data, like this:
>
>my $joe = Dude->new();
>my $tom = Dude->new();
>my $ann = Dude->new();
>my $jane = Dude->new();
>
>$joe->fill(
> name => "joe"...
Show full article (2.07Kb)
no comments
  LaTeX rendering         


Author: Bruce C. Miller
Date: Jan 31, 2008 08:14

Can anyone recommend a Perl/CGI script that will generate images
dynamically based upon and input LaTeX string? I would prefer one that
doesn't have a lot of dependencies, if possible. My only requirements
is that it supports foreground/background coloring and communative
diagrams.
2 Comments
  Re: Magic for object constructor wanted         


Author: Peter Scott
Date: Jan 31, 2008 07:58

On Wed, 30 Jan 2008 22:05:45 -0800, Koszalek Opalek wrote:
> My code creates new objects and then populates them with
> data, like this:
>
> my $joe = Dude->new();
> my $tom = Dude->new();
> my $ann = Dude->new();
> my $jane = Dude->new();
>
> $joe->fill(
> name => "joe",
> friends => [ $ann, $tom ]
> );
>
> $jane->fill(
> name => "jane",
> friends => [ $ann ]
> );
>
> You will notice that the name field is always the same as ...
Show full article (1.73Kb)
no comments
  Re: Can't get PAR packager to run pp         


Author: Tony T.
Date: Jan 31, 2008 07:35

>
> http://www.bribes.org/perl/ppmdir.html
>
> It's up to date with CPAN for PAR.
>
> Alan

Thanks for all the suggestions.

I'm still having problems, but at least it's a different problem which
is always refreshing!

I added the bribes repository, as above, and installed PAR .977.
There was still no pp.bat anywhere on my system.

Then I did the install as described here:
http://www.expertsrt.com/tutorials/Matt/perlPAR.html
by downloading each file and running nmake on each one.
Now when I type pp, I get:
Can't find par loader at C:/Perl/site/lib/PAR/Packer.pm line 101.
(There's now a pp.bat in c:\Perl\bin)

I'm using Perl 5.10.0, with PAR .977 on Windows XP.1
Same results if I use Perl 5.8
Show full article (0.93Kb)
1 Comment
  Re: perl problem         


Author: Michele Dondi
Date: Jan 31, 2008 06:34

On Wed, 30 Jan 2008 21:16:27 -0800 (PST), arup
gmail.com> wrote:
>Subject: perl problem

Yep, which *actual* one?
>hi, I have around 400 proteins and I have to retrieve all protein
>pages using Perl script or .....I m new in Programmig ...Can anyone
>help me how to solve it....

Pages? Web pages? If so then LWP is your friend.

Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^ .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER 256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
no comments
  Re: Magic for object constructor wanted         


Author:
Date: Jan 31, 2008 06:18

Koszalek Opalek wrote:
> My code creates new objects and then populates them with
> data, like this:
>
> my $joe = Dude->new();
> my $tom = Dude->new();
> my $ann = Dude->new();
> my $jane = Dude->new();

I suggest that it's probably better to work like this:

my @people = (
Dude->new("joe"),
Dude->new("tom"),
Dude->new("ann").
Dude->new("jane")
);

Alternatively/additioanaly, you might have a "group"
class (set of Dudes) that allow Dudes t be found by name.

If your set of names becomes large, declaring all the
variables implied by your original approach becomes ugly.
Show full article (0.62Kb)
2 Comments
Your Ad Here
  FAQ 2.2 How can I get a binary version of perl?         


Author: PerlFAQ Server
Date: Jan 31, 2008 06:03

This is an excerpt from the latest version perlfaq2.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

2.2: How can I get a binary version of perl?

For Windows, ActiveState provides a pre-built Perl for free:

http://www.activestate.com/

Sunfreeware.com provides binaries for many utilities, including Perl,
for Solaris on both Intel and SPARC hardware:

http://www.sunfreeware.com/

If you don't have a C compiler because your vendor for whatever reasons
did not include one with your system, the best thing to do is grab a
binary version of gcc from the net and use that to compile perl with.
CPAN only has binaries for systems that are terribly hard to get free
compilers for, not for Unix systems.

Some URLs that might help you are:
Show full article (2.18Kb)
no comments
1 2 3 4 5 6 7 8 9