comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
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
  Advice about cgi programming         


Author: newbiegalore
Date: Feb 12, 2008 18:52

Hello everyone :-) ,
I am a newbie to Perl, but have
experience with other scripting languages. I am putting up this post
to ask for advice regarding what skills I would need to get a task
done. This might not be the most appropriate group, but since Perl is
used a lot for server back-end scripts, I guess a lot of people have
experience with using it for building web applications.

My task: I have bought a domain and now want to set up a website on
it.

What will the site do: Accept a string from the user, like Google does
(A very simple design). Then the site will check this string for the
presence of a substring. The output will be displayed in a simple text
box on the main page (to begin with).

If I have a script that will do this operation, I need to link the
input string to this script in the background and return the result.
Is CGI programming used to make this "glue" ? I could ask someone to
access the script directly on my site like
Show full article (1.25Kb)
4 Comments
  FAQ 3.16 How can I make my Perl program take less memory?         


Author: PerlFAQ Server
Date: Feb 12, 2008 18:03

This is an excerpt from the latest version perlfaq3.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 .

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

3.16: How can I make my Perl program take less memory?

When it comes to time-space tradeoffs, Perl nearly always prefers to
throw memory at a problem. Scalars in Perl use more memory than strings
in C, arrays take more than that, and hashes use even more. While
there's still a lot to be done, recent releases have been addressing
these issues. For example, as of 5.004, duplicate hash keys are shared
amongst all hashes using them, so require no reallocation.
Show full article (5.18Kb)
no comments
  Win32::MMF What's going on?         


Author: blaine
Date: Feb 12, 2008 15:28

Hi,

I'm trying to write perl in windows environment and need to use the
package win32::mmf. Anyhow, I've got some test code below that will
write to the windows namespace but will not retrieve from it. Please
note it's just an example in production I would be writing to the ns
in one script and grabbing from the ns in another.

For some reason the second instance of mmf is not accessing the same
namespace. Any ideas?

my $mmf = Win32::MMF->new( -swapfile => "data.swp",
-namespace => "MyDataShare",
-size => 1024 * 1024 )
or die "\n\n\n\nCan not create namespace";

$mmf->setvar($tokenKey, $hashRef);
print "\n\n " . $mmf->debug();

print "\n\n
--------------";

undef $mmf;
my $mmf = Win32::MMF->new( -swapfile => "data.swp",
-namespace => "MyDataShare",
-size => 1024 * 1024 ,
Show full article (2.16Kb)
3 Comments
  USENIX LISA '08 Call For Papers         


Author: Lionel Garth Jones
Date: Feb 12, 2008 13:52

--------------------------------------------------------------------
Call for Papers
LISA '08: 22nd Large Installation System Administration Conference
November 9-14, 2008, San Diego CA, USA
http://www.usenix.org/lisa08/cfpa
Extended abstract and paper submissions due: May 8, 2008
Sponsored by USENIX and SAGE
--------------------------------------------------------------------

Dear Colleague,

The LISA '08 organizers invite you to contribute proposals for refereed
papers, invited talks, and workshops, plus any ideas you have for Guru
Is In sessions, the Hit the Ground Running track, Work-in-Progress
Reports, posters, and training sessions.

The theme for LISA '08 is "Real World System Administration."

The Call for Participation with submission guidelines and sample topics
can be found on the USENIX Web site at http://www.usenix.org/lisa08/cfpa
Show full article (3.20Kb)
no comments
  SOAP::Lite - getting WSDL using basic authentication         


Author: J. Gleixner
Date: Feb 12, 2008 13:03

I'm trying to find "the" method, using SOAP::Lite or SOAP::Schema,
to get a WSDL that requires HTTP authentication.

The only way I've been able to get a WSDL that requires basic
authentication is by over-riding the SOAP::Schema::access method:

e.g.

use SOAP::Lite;

my $login = 'mylogin';
my $pw = 'mypassword';

my $service = SOAP::Lite
-> service( 'http://some.server.com/some/protected/path/my.wsdl' );
#$service->some_method();

# over-ride method to handle authentication
sub SOAP::Schema::access
{
my $self = shift->new;
my $url = shift || $self->schema_url || Carp::croak 'Nothing to
access. URL is not specified';

my $req = HTTP::Request->new(GET => $url);
Show full article (1.70Kb)
1 Comment
  FAQ 3.14 How can I write a GUI (X, Tk, Gtk, etc.) in Perl?         


Author: PerlFAQ Server
Date: Feb 12, 2008 12:03

This is an excerpt from the latest version perlfaq3.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 .

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

3.14: How can I write a GUI (X, Tk, Gtk, etc.) in Perl?

(contributed by Ben Morrow)

There are a number of modules which let you write GUIs in Perl. Most GUI
toolkits have a perl interface: an incomplete list follows.

Tk This works under Unix and Windows, and the current version doesn't
look half as bad under Windows as it used to. Some of the gui
elements still don't 'feel' quite right, though. The interface is
very natural and 'perlish', making it easy to use in small scripts
that just need a simple gui. It hasn't been updated in a while.
Show full article (3.75Kb)
no comments
  Testing the response of a WEB form for completion.         


Author: gshine1
Date: Feb 12, 2008 10:02

We need to fill, submit and test the response of a WEB form. This was
we can check the backend databases are working and the forms are
functioning.

Is there a way to have perl interact with a standard form and monitor
the resposes?

Maybee a standard script or something already developed, but otherwise
a basic outline of a method that would work.

Many thanks
Gary
1 Comment
  FAQ 3.12 Where can I get perl-mode for emacs?         


Author: PerlFAQ Server
Date: Feb 12, 2008 06:03

This is an excerpt from the latest version perlfaq3.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 .

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

3.12: Where can I get perl-mode for emacs?

Since Emacs version 19 patchlevel 22 or so, there have been both a
perl-mode.el and support for the Perl debugger built in. These should
come with the standard Emacs 19 distribution.

In the Perl source directory, you'll find a directory called "emacs",
which contains a cperl-mode that color-codes keywords, provides
context-sensitive help, and other nifty things.

Note that the perl-mode of emacs will have fits with "main'foo" (single
quote), and mess up the indentation and highlighting. You are probably
using "main::foo" in new Perl code anyway, so this shouldn't be an
issue.

--------------------------------------------------------------------
Show full article (1.64Kb)
no comments
  Strange behaviour while string concatenation         


Author: Rajpreet
Date: Feb 12, 2008 02:51

Greetings,

I am trying to append an alphabetical counter to a string. But
concatenation shows a very strange behaviour in this case. Can some
one please help?

The piece of code looks like :

$self->{"log"}->debug(" In Function _process_array_data. ");
$self->{"log"}->debug(" temp 4,data[11],ctr value s are : $temp-
>[4], $data->[11],$ctr ");

$temp->[4] = substr($data->[11],0,2).substr($data-
>[11],-8)."$ctr";
$self->{"log"}->debug(" temp 4 value is : $temp->[4] ");

And output in debug file is something like this :

DEBUG: temp 4,data[11],ctr value s are : , NX200802118966, the
counter value is : AA
DEBUG: temp 4 value is : NX02118966 the counter value is : AA

And in output file the record comes like :

211012 00003855 1992 NX02118966
th
Show full article (0.99Kb)
3 Comments
  Posting Guidelines for comp.lang.perl.misc ($Revision: 1.8 $)         


Author: tadmc
Date: Feb 12, 2008 00:15

Outline
Before posting to comp.lang.perl.misc
Must
- Check the Perl Frequently Asked Questions (FAQ)
- Check the other standard Perl docs (*.pod)
Really Really Should
- Lurk for a while before posting
- Search a Usenet archive
If You Like
- Check Other Resources
Posting to comp.lang.perl.misc
Is there a better place to ask your question?
- Question should be about Perl, not about the application area
How to participate (post) in the clpmisc community
- Carefully choose the contents of your Subject header
- Use an effective followup style
- Speak Perl rather than English, when possible
- Ask perl to help you
- Do not re-type Perl code
- Provide enough information ...
Show full article (16.63Kb)
no comments
1 2