|
|
|
|
|
|
|
comp.lang.perl.misc
|
 |
|
A site for all ypur programming language needs
A complete tutorial for all your programming language needs such as <br> Java, .Net and many more. A one shop site for all your programming <br> language needs <br> <a target="_blank" rel=nofollow href="http://www.computenetwork.blogspot.com">[link]</a>
FAQ 3.22 How can I get "#!perl" to work on [MS-DOS,NT,...]?
This is an excerpt from the latest version perlfaq3.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
FAQ 3.27 Where can I learn about linking C with Perl?
This is an excerpt from the latest version perlfaq3.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
FAQ 4.24 How do I reverse a string?
This is an excerpt from the latest version perlfaq4.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
Creating new pages automatically with PDF::API2
Since no one in the beginners group could answer this I thought I'd <br> ask it to this group. I am using PDF::API2 to create PDF files from a <br> bunch of separate text files I have. The issue I am having is that I <br> am only able to create the first page of each text file and I haven't <br> been able to figure out how to automatically generate additional pages
FAQ 3.28 I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?
This is an excerpt from the latest version perlfaq3.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
code written under 5.10.0 to be run under 5.8.8
I understand that one can specify that a script must be run under a perl <br> version no earlier than a particular version. So, if I say 'use 5.6.0', <br> that code will throw an error if one tries to run it under perl 5.5.0, <br> right? <br> But how about the reverse case? <br> Suppose I write code on my desktop, which has perl 5.10.0 installed, and
FAQ 4.22 How do I expand function calls in a string?
This is an excerpt from the latest version perlfaq4.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
Printing a new line
Sounds simple enough. <br> I am printing to a text file file <br> open (example, ">remote.txt") || die ("Could not open file. $!"); <br> print example ($first_name); <br> print example ($last_name); <br> close (example); <br> I have tried putting \n but it gives errors. Basically I want the <br> first and last names on a new line. <br> thanks
FAQ 4.12 How do I find the day or week of the year?
This is an excerpt from the latest version perlfaq4.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
regex problem unresolved
Dear Gurus, <br> I was suggested by experts to post runnable codes to seek advice. <br> Unfortunately, after 4-day trial, I'm unable to break down the large codes <br> written by others to a smaller one. And as what xhoster inferred exactly, <br> the matching string comes from a data file and therefore cannot be known in
XML::Simple
I am having some problems with XML::Simple and forcearray. I am trying <br> to get the XML file read in as an array instead of into a hash. I am <br> on Perl 5.6.1 and XML::Simple 1.06 and I can not updated. I have to <br> figure out how to do this on the system I am on. <br> XML File: <br> <?xml version='1.0'?> <br> <apps> <br> <app name="a" id="a">
Filehandles
Hi, <br> I have a question about filehandles, even after reading the docs... I <br> know how to start a subprocess from perl and read from it. But how do <br> I write to the parent process that started me, the perl script? <br> I have tcl script from somewhere that calls a perl script I'm writing. <br> The tcl script says: <br> set channel [open |./randomize RDONLY]
FAQ 4.4 Does Perl have a round() function? What about ceil() and floor()? Trig functions?
This is an excerpt from the latest version perlfaq4.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
FAQ 3.30 What's MakeMaker?
This is an excerpt from the latest version perlfaq3.pod, which <br> comes with the standard Perl distribution. These postings aim to <br> reduce the number of repeated questions as well as allow the community <br> to review and update the answers. The latest version of the complete <br> perlfaq is at <a target="_blank" rel=nofollow href="http://faq.perl.org">[link]</a> .
|
|
|
|
perl.beginner
|
 |
|
$^I
I just looked it up on perldoc perlvar, but I am still not sure what it <br> does. <br> $^I The current value of the inplace-edit extension. Use "undef" <br> to disable inplace editing. (Mnemonic: value of -i <br> switch.) <br> I was reading perl cookbook and saw this example, and was wondering what
Can't run PERL scripts on a shared server?
I've been trying to setup a connection w/ a shared server at <br> godaddy.com. The script won't work and when I called them they tell me <br> that because I don't have a dedicated server that I can't run a perl <br> script and so I need to upgrade my account. I can access the shared <br> server w/ PHP....why can't I do it w/ PERL? I've gotten bullsh*t
comparing two binary numbers
Dear all, <br> I need to compare two binary numbers and need perl to return the <br> number of matching bits. <br> For example: <br> $aaa = "10111100"; <br> $bbb = "00101100"; <br> In this case, the number of matching bits is 6. <br> I know I could split the strings and compare the bits one by one. <br> However, is there any faster functions for this? I need to compare
Please help critcize and shorten my sub code
I dont know how to go through the array over and over again pending on <br> my previous search so I ended up writing it like below which works.. but <br> looks really really <br> inefficient.. <br> sub dd_fact { <br> my $routename = shift; <br> my $routegroupid; <br> my $trunkgroupid; <br> my $carriername; <br> my $carrier_active;
split slice question
I use this before (split slice ) but it's working bit funny now.. <br> can someone tell me why?? <br> it looks like it's splitting on '' instead of /|/ as I have specified <br> below... ?? <br> use strict; <br> use warnings; <br> my $array = q/hi|how|are|you|fine/; <br> my ($moe,$hae,$now) = (split(/|/,$array))[0,1,2]; <br> print "$moe $hae $now\n";
perl-support for vim help needed
does anyone use perl-support for vim here? <br> I installed it but having trouble bringing up the menus.. <br> does anyone uses this? and know how to bring up the menu? <br> If the root menu 'Perl' is not visible call it with the item <br> "Load Perl Support" from the standard Tools-menu. <-- where is this <br> standard tools-menu?
Text to hex
Given a string of text, how do I convert it to a string of hexadecimal <br> values? For example, given the string "Hello", I want the string "48 <br> 65 6C 6C 6F".
Perl MQSeries API newbie help
Hi: I have very little knowledge about MQ Series. I have built the MQ Client and MQSeries perl API on my server. My MQ admin also has provided me the name of ques, queue manager, MA CHannel, hostname and port. I am trying to build a simple script that will connect to a que and fetch messages. I have not found any useful examples on the web. Can someone share a code ?
dns error or module error?
Trying to install Net::SSLeay on Solaris 9 and I get the following <br> message in the output: <br> <p>Use of uninitialized value in subroutine entry at <br> /m1/shared/perl/5.8.5-09/lib/5 .8.5/sun4-solaris/Socket.pm line 373. <br> Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at <br> /m1/shared/perl/5.8.5-09/lib/5 .8.5/sun4-solaris/Socket.pm line 373.
script for an mbox
I need to remove all messages older than X from a gigabyte size mbox. Anyone <br> got a script for this? <br> <p>Tony Heal <br> Pace Systems Group, Inc. <br> 800-624-5999 x9317
deleting a user name from a file
I'm writing this script to remove users from a file, the sudoers file, to be <br> more specific. <br> Here is what I have so far, not sure where to go from here. <br> *#!/usr/bin/perl -w <br> my $sites = $ARGV[0]; <br> my $user = $ARGV[1]; <br> for my $site ($#ARGV[1]){ <br> open FILE, "$_/local/etc/sudoers" or die "cannot open sudoers for $sites:
Documentation problem
Hi all, <br> I have some problem on writing remarks on module. <br> <code> <br> use SomeMod ; # exported "BuildFather" <br> $x = BuildFather ( %argv ) ; <br> $x_child = $x -> GiveSomething ( %argv ) ; <br> $x_grandson = $x_child -> DoSomthingElse ( %argv ) ; <br> print $x_child -> {Value}{Provided}{by}{Grandson } <br> </code> <br> So, which is a class?
one liner for for and if
use warnings; <br> use strict; <br> my @array = qw/one two three four/; <br> print "$_\n" for @array last if "$_" eq q/three/; <br> [root@server tmp]# ./!$ <br> ././././testthis2.pl <br> syntax error at ././././testthis2.pl line 8, near "@array last " <br> Execution of ././././testthis2.pl aborted due to compilation errors. <br> Can someone fix my last statement on this program?
error in printing unicode
I just finished reading "Beginning Perl by Simon Cozens Chapter 1: First <br> Steps In Perl" and i tried to print a Unicode character using the \x{} <br> but i got a strange outcome i don't understand. <br> The code was: <br> use warnings; <br> print "\x{2620}\n"; <br> and the result was: <br> Wide character in print at C:\Documents and
install module problem
Hi, I'm trying to install a perl module (Net::SSLeay) on a Sun unix box <br> running Solaris 9. In doing the make, I get a message from the shell in <br> the output: <br> "sh: gcc: cannot execute". To me this sounds like it's saying it <br> doesn't know what/where gcc is. <br> <p>My gcc is in /usr/local/bin, but /usr/local/bin is not in PATH. So I
|
|
|
|
|
|
|
|
|
|