Re: Using qr// with substitution and group-interpolation in the substitution part

2023-10-26 Thread Octavian Rasnita
Hello, I tried to find a solution that doesn't use eval, although if '$1' is sent as a parameter to the subroutine as a simple string, I think it either need to be eval'ed or replaced literally. I made this solution to work with more capturing parans if necessary: use strict; use warnings; m

Re: covert perl code to binary

2019-01-17 Thread Octavian Rasnita
From: "Chas. Owens" The only way to truly hide code is to not give the code to the person you don't want to see it. Even languages like C have decompilers. If you truly need to prevent people from seeing code, then your only real option is to run a server and distribute a client that connects

Re: Unfamiliar syntax

2018-07-20 Thread Octavian Rasnita
From: James Kerwin Afternoon all, I have been asked to take a look at a .pl file which is part of a set-up called "EPrints". The particular file controls who can access documents on a server. Excluding some comments, the file starts like: $c->{can_request_view_document} = sub {

Re: difficulty with matching

2018-06-01 Thread Octavian Rasnita
[0-9]+ means at least one digit in range 0-9. If there is no digit, the string won't match. You want [0-9]* instead. --Octavian - Original Message - From: Rick T To: Perl Beginners Sent: Friday, June 01, 2018 11:54 PM Subject: difficulty with matching This is a newbie que

Re: CPAN will shutdown

2018-05-22 Thread Octavian Rasnita
"2) It’s not “shutting down” so much as it is being replaced by the existing MetaCPAN search site. This is positive news about the future of Perl: an older, less capable tool has been replaced" metacpan.org has some disadvantages compared with search.cpan.org, and some missing features, so it

Re: What is time, anyway?

2018-01-29 Thread Octavian Rasnita
from: perldoc -f time timeReturns the number of non-leap seconds since whatever time the system considers to be the epoch, suitable for feeding to "gmtime" and "localtime". On most systems the epoch is 00:00:00 UTC, January 1, 1970; a prominent exception be

Re: Regex for matching files that don't have type extensions

2016-11-05 Thread Octavian Rasnita
From: Aaron Wells True. It could get hairy. Unicode is a pretty vast landscape, and I think if you only want ASCII word characters to count as things that could be in a filename, your original [A-Za-z0-9_] is your best bet. Thanks to the others for their comments. As Ken says: there are pro

Re: display information on a web page and offer a file for download with the same page

2016-02-13 Thread Octavian Rasnita
From: "lee" "Octavian Rasnita" writes: From: "lee" Hi, how can I make it so that my cgi program displays information on a web page it sends to a user's web browser /and/ then makes the browser's download dialog-box come up to let the user downlo

Re: display information on a web page and offer a file for download with the same page

2016-02-13 Thread Octavian Rasnita
From: "lee" Hi, how can I make it so that my cgi program displays information on a web page it sends to a user's web browser /and/ then makes the browser's download dialog-box come up to let the user download a file? It seems that making the web browser wanting to download a file is only poss

Re: Not working example - from Mastering Perl book

2015-05-03 Thread Octavian Rasnita
an tell us about?:) Andrew On Sun, May 3, 2015 at 11:26 AM, Vincent Lequertier wrote: Same output here, with perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux-thread-multi. I'm from package main My name is glob I'm from package m

Not working example - from Mastering Perl book

2015-05-03 Thread Octavian Rasnita
Hello, I've seen the following example in Mastering Perl book, with the comment at the end telling what should be the result: #!/usr/bin/perl # typeglob-name-package.pl use v5.10; $foo = "Some value"; $bar = "Another value"; who_am_i( *foo ); who_am_i( *bar ); sub who_am_i { local *glob = s

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Octavian Rasnita
From: Priyal Jain Hi, For establishing ssh session between client and server, which is better method: 1. Net::SSH2 : http://search.cpan.org/~rkitover/Net-SSH2-0.53/lib/Net/SSH2.pm 2. Expect : http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod What are the advantages of u

Re: Match HTML ...... string over multiple

2014-11-18 Thread Octavian Rasnita
Hi, Don't use regular expressions for matching. use HTML::TreeBuilder; my $tree = HTML::TreeBuilder->new_from_content($html_content); my $div = $tree->look_down( _tag => 'div', id => 'product', class => 'product' ); my $table = $div->look_down( _tag => 'table', class => 'prodc' ); #Here you

Re: Which perl for Windows?

2014-08-05 Thread Octavian Rasnita
From: "ESChamp" Which perl should I (an occaisonal perl user, a rare perl programmer) use? I see cygwin strawberry perl activestate perl dwim perl ??? Thanks. It depends on your preferences and on what you need to do with it. Perl has a Unix origin so almost all Perl users use it on a

Re: Can't Install Mojolicious on Shared Server

2014-07-31 Thread Octavian Rasnita
From: "Mike Flannigan" Subject: Re: Can't Install Mojolicious on Shared Server On 7/30/2014 11:14 PM, Octavian Rasnita wrote: Catalyst can be used with the CGI interface, but it would be very slow, so not recommended at all. Octavia I was told it could also be used

Re: Can't Install Mojolicious on Shared Server

2014-07-30 Thread Octavian Rasnita
From: "Mike Flannigan" Interestingly Hostgator already has Catalyst installed, so for now I'm going to give that a try. Mike Catalyst can be used with the CGI interface, but it would be very slow, so not recommended at all. Octavian -- To unsubscribe, e-mail: beginners-unsubscr..

Using filenames with Unicode chars

2014-06-08 Thread Octavian Rasnita
Hello, Do you know if there is a *portable* way in Perl for working with filenames with Unicode chars? I mean, I need to create/rename/move/copy/modify/delete files. It should work at least under Windows/Mac/Linux. The standard way of using open() doesn't seem to be working. Thanks. --Octav

Re: CPAN unavailable

2014-05-21 Thread Octavian Rasnita
From: "Shlomi Fish" Hi all, On Wed, 21 May 2014 11:49:17 +1000 wrote: > > From: Yonghua Peng > > > Do you know why these days cpan.org has been unavailable? > > I don't know why, but it has been down (often for lengthy periods) quite a > bit lately. > Thankfully, https://metacpan.org seems t

Re: Importing subs + strict and warnings using Exporter

2014-03-31 Thread Octavian Rasnita
From: "Ruud H.G. van Tol" > On 2014-03-30 19:10, Octavian Rasnita wrote: >> From: "Dr.Ruud" >> >>> On 2014-03-30 12:26, Octavian Rasnita wrote: >>> >>>> But I also want that module to export strict and warnings. >>> >

Re: Importing subs + strict and warnings using Exporter

2014-03-30 Thread Octavian Rasnita
From: "Dr.Ruud" On 2014-03-30 12:26, Octavian Rasnita wrote: But I also want that module to export strict and warnings. http://search.cpan.org/perldoc?Modern%3A%3APerl -- Ruud Thanks. I know about it but it is not helpful. I want to use in my scripts just: use MyModule;

Importing subs + strict and warnings using Exporter

2014-03-30 Thread Octavian Rasnita
Hello, I am trying to create a module that exports a few subroutines in the script that uses it. This is OK, very simple to do using Exporter. But I also want that module to export strict and warnings. If I don't use Exporter in the module, I can make it to export strict and warnings, using

Re: about HTML

2014-03-13 Thread Octavian Rasnita
HTML::TreeBuilder++ From: Ariel Hosid I'm using the Perl Package Manager and couldn't find the HTML::TreeBuilder module, but I found the HTML::Element-Library module. Does it include the TreeBuilder module functionality? HTML::TreeBuilder uses HTML::Element and HTML::Parser and a few ot

Re: web scraper modules

2014-02-19 Thread Octavian Rasnita
From: "Mike McClain" > Hi, >A few years ago I wrote a script to search a couple of dozen sites > like CalJobs, craigslist, Dice, Indeed, several temp agencies in the > area and a few of the major companies who use electronics techs > for jobs I might care to apply for. >At the time I used

Re: OO perl programming

2014-02-13 Thread Octavian Rasnita
From: Robert Wohlfarth On Thu, Feb 13, 2014 at 2:46 PM, Jim Gibson wrote: CPAN modules should be OO nowadays, just to avoid namespace clashes (all the good function names are taken). Packages already prevent namespace clashes. Why add the overhead and complexity of objects? My pe

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
There is more than one way to do it. Some of them work in some cases, other ways in other cases... :-) I found some modules that installed well only with cpan and not with cpanm, or the other way around. --Octavian - Original Message - From: "Luca Ferrari" To: "Octavi

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask there. There may be more that know the answer. --Octavian - Original Message - From: "Luca Ferrari" To: Sent: Monday, February 10, 2014 5:01 PM Subject: error installing catalyst via cpan Hi all, while ins

Re: Learning perl libraries

2014-02-07 Thread Octavian Rasnita
From: rakesh sharma Hi I am a new to perl. Wanted to know how to master some of the daily used perl libraries. Most of the examples are different in usage, some are OO and others are scalar. Some of the Perl modules offer just a functional interface, so no OOP, some of them are jus

Re: Newbie creating Perl web report

2014-02-07 Thread Octavian Rasnita
CGI is just an interface between a program and a web server. Other newer interfaces are fastcgi, fcgid, mod_perl, psgi... Using another interface than CGI has some advantages and some disadvantages. The main advantage is that the programs are persistent, so they are ran once, usually when the web

Re: Locating files in sub-directories

2013-12-17 Thread Octavian Rasnita
From: "SSC_perl" Octavian, Thanks for the reply. >> So I tried the following: >> use lib "ss_files"; >> This also works, but iirc, I read that it won't work across all platforms. >> Is that correct? > > > This method also works, but to be equivalent with the first method it should > have b

Re: Locating files in sub-directories

2013-12-16 Thread Octavian Rasnita
From: "SSC_perl" I'm in the process of moving certain files of the SurfShop script into a sub-directory to clean up the main directory and would like to know the best way for the script to find these files. I was using this method: use FindBin qw($Bin); use lib "$Bin/../ss_files"; which work

Re: Help needed with here documents (security?)

2013-10-24 Thread Octavian Rasnita
From: "Ronald F. Guilmette" > > In message <7E7181F2497441C88988DD1F16E4A743@octavianf303f0>, you wrote: > >>From: "Janek Schleicher" >> >>> Am 24.10.2013 15:07, schrieb Shawn H Corey: > my $email = Email::Simple->create( > header => [ > From => $sender_addr

Re: Help needed with here documents (security?)

2013-10-24 Thread Octavian Rasnita
From: "Janek Schleicher" Am 24.10.2013 15:07, schrieb Shawn H Corey: my $email = Email::Simple->create( header => [ From => $sender_addr, To => 'ad...@tristatelogic.com', X-Server-Protocol => $server_protocol, X-Http-User-Agent => $ht

Re: Quizzing students with Perl

2013-10-08 Thread Octavian Rasnita
Wow Rick, almost 70! Great! Seems that in Perl world even the beginners are old. :-) --Octavian - Original Message - From: "Rick T" To: "Perl Beginners" Sent: Tuesday, October 08, 2013 8:42 PM Subject: Re: Quizzing students with Perl Many thanks for the helpful feedback from John

Re: question about perl 6 sigils

2013-09-24 Thread Octavian Rasnita
From: Andy Bach On Tue, Sep 24, 2013 at 10:44 AM, Shawn H Corey wrote: There is also a third group who want to get rid of sigils entirely. ;) Ahhh! Blasphemy, Blasphemer! That way lies chaos! Dogs and cats, living together! NEVER! ... And I was going to add that there is a four

Re: Resources on Multi threading

2013-09-05 Thread Octavian Rasnita
Hi Shlomi, From: "Shlomi Fish" For why you should not use threads in Perl, see: * http://perl-begin.org/FAQs/freenode-perl/#I.27m_trying_to_use_threads_to_speed_up_my_program._What_should_I_know.3F * http://perl-begin.org/uses/multitasking/#threads (**NOTE**: http://perl-begin.org/ is a site

Re: Posting to WordPress from a Perl script?

2013-07-19 Thread Octavian Rasnita
From: jbiskofski Also, to fix the expat error you need to install libxml development libraries, depending on your distro this can be accomplished in different ways. Thanks. Finally I was able to install WordPress module and WordPress::API, but it was pretty hard. Octavian

Posting to WordPress from a Perl script?

2013-07-19 Thread Octavian Rasnita
Hi, Do you know if there is a working module that can be used to post to WordPress from a Perl script? I've seen that all the modules that contain WordPress are very old. I need to install that module under a Perl built with Perlbrew. I tried to install WordPress, WordPress::API, but they both

Re: Is there a way to generate HTML reports?

2013-07-06 Thread Octavian Rasnita
From: *Shaji Kalidasan* Greetings, As I understand, Perl has excellent report-generation capabilities. By using formats, we can actually visualize how our output will look because the definition of a format in Perl is very similar to what you see on the output. Is there any way we to co

Re: REG: How to add perl repository in PPM

2013-06-28 Thread Octavian Rasnita
Or ppm rep add rep_name rep_url --Octavian - Original Message - From: "Алексей Мишустин" To: Sent: Friday, June 28, 2013 2:16 PM Subject: Re: REG: How to add perl repository in PPM > 2013/6/27 Anitha Sreejith Victor : >> Hi All, >> >> Please suggest with the steps to add number of av

Re: perl hash loop: keys() vs values()

2013-06-15 Thread Octavian Rasnita
Perl has 2 types of arrays: common arrays and associative arrays which are called hashes. In order to get the value of an item from an ordinary array, you need to specify the index of that array, for example: my @array = (1, 2, 3); print $array[1]; #will print "2" (because the indexes start fr

Re: Perl and Web Development

2013-06-03 Thread Octavian Rasnita
From: Robert Wohlfarth On Mon, Jun 3, 2013 at 5:03 PM, Ivan Torres wrote: On Mon, Jun 3, 2013 at 4:52 PM, Rich Johnson wrote: Can anyone recommend a good book to use for building a website using Perl? Specifically, I'm looking to build a backend to a mobile app. Everything I've

Re: module versions

2013-05-15 Thread Octavian Rasnita
From: "shawn wilson" I asked this in #perl-help and was told that by the time perl checked the version, the module was already loaded - is there a way to check the version without completely loading the module so that when one failed, I could move on to another module of the same name whose ve

Re: curiosity about the usage of my

2013-05-11 Thread Octavian Rasnita
From: "Luca Ferrari" On Thu, May 9, 2013 at 6:22 PM, Brandon McCaig wrote: It's a good trait for programmers to avoid waste, but not if it comes at the expense of reliability, security, or robustness. Using my() and our() takes very little effort and is well worth the investment. Thanks f

Re: how to retrieve the keys from hash in the sequence in which data is inserted

2013-04-23 Thread Octavian Rasnita
From: "Paul Johnson" > On Tue, Apr 23, 2013 at 04:56:55PM +0530, kavita kulkarni wrote: >> Hello All, >> >> Can you help me in finding the most time effective way to retrieve the >> key-values from hash in the same sequence in which data is inserted into >> the hash. > > Hashes are unordered, s

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "Bob McConnell" People have been selling both Open Source and Free Software for years. Both IBM and RedHat are doing very well at it. But they don't always require cash or monetary profit as their selling price. You might also want to consider this article about the open source economic

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "John SJ Anderson" On Tue, Feb 12, 2013 at 10:39 AM, jbiskofski wrote: I understand that obfuscating code is not a real detriment to a seriously motivated knowledgeable hacker. Yet I still think some security is preferable to no security at all. Also I wish this problem could be attacke

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "Rob Coops" Hi Bob, The problem with obfuscation is that if does not work. No mater how far you go (all database tables are called T with every column being C) all variables being single letter things like $a and @a and %b one that wants to will always be able to read it. The only thin

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "Bob McConnell" You cannot obfuscate the input to an interpreter. It has to be in a format that the interpreter will recognize, which necessarily means that people can also read it. If you really need to hide your source code, you have to switch to a compiled language with an actively o

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "Tiago Hori" > I despise the argument that some places are lawless and therefore you need > encryption and DRM. Those places you are probably thinking of > are the one more in need of free culture. Poor third world countries. Yep. The problem is that there are more people living in thos

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: "Shlomi Fish" Hi all, On Tue, 12 Feb 2013 09:01:27 -0800 (PST) Rajeev Prasad wrote: > freinds, > > what is the advice just for obfuscating code? platform is solaris. > > ty. thanks all for the great responses. Here is something I have written about it in the context of using Python b

Re: other ways to parse emails from html?

2013-01-31 Thread Octavian Rasnita
From: "Jeswin" Hi again, I tried to use the treebuilder modules to get emails from a webpage html but I don't know enough. It just gave me more headaches. My current method get the emails is to go to the site, put the source code in MS Word, and run a regex to get all the emails in that html p

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Octavian Rasnita
From: "Jeswin" Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past examples online. The HTML portion f

Re: Building a small web-app in Perl

2013-01-02 Thread Octavian Rasnita
From: "Chankey Pathak" Hi guys, I have to make a simple web app which should have the features mentioned below: 1. User registration - Users can signup and login 2. New message creation: User can create and post new messages 3. Follow users: Users can follow other users 4. User Home Page - On

Re: about ORM

2012-12-30 Thread Octavian Rasnita
Hi, From: "Feng He" Hello, I have a question that, what's the advantage of using an ORM instead of the traditional DBI? With an ORM the programming code is much elegant and easy to write because you don't need to join SQL strings to compose a full SQL query based on different condition

Re: Fast XML parser?

2012-10-31 Thread Octavian Rasnita
From: "Jenda Krynicky" From: "Octavian Rasnita" I forgot to say that the script I previously sent to the list also crashed Perl and it popped an error window with: perl.exe - Application Error The instruction at "0x7c910f20" referenced memory at "0x00

Re: Fast XML parser?

2012-10-31 Thread Octavian Rasnita
From: "Jenda Krynicky" > From: "Octavian Rasnita" > To: > Subject:Fast XML parser? > Date sent: Thu, 25 Oct 2012 14:33:15 +0300 > >> Hi, >> >> Can you recommend an XML parser which is faster than XML::Tw

Re: Fast XML parser?

2012-10-30 Thread Octavian Rasnita
From: "Jenda Krynicky" > From: "Octavian Rasnita" > To: > Subject:Fast XML parser? > Date sent: Thu, 25 Oct 2012 14:33:15 +0300 > >> Hi, >> >> Can you recommend an XML parser which is faster than XML::Tw

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: "Shlomi Fish" On Mon, 29 Oct 2012 10:09:53 +0200 Shlomi Fish wrote: > Hi Octavian, > > On Sun, 28 Oct 2012 17:45:15 +0200 > "Octavian Rasnita" wrote: > > > From: "Shlomi Fish" > > > > Hi Octavian, > > > >

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: "Rob Coops" On Mon, Oct 29, 2012 at 9:18 AM, Shlomi Fish wrote: > On Mon, 29 Oct 2012 10:09:53 +0200 > Shlomi Fish wrote: > > > Hi Octavian, > > On Sun, 28 Oct 2012 17:45:15 +0200 > > "Octavian Rasnita" wrote: > > > From: &q

Re: Fast XML parser?

2012-10-28 Thread Octavian Rasnita
From: "Shlomi Fish" Hi Octavian, On Thu, 25 Oct 2012 14:33:15 +0300 "Octavian Rasnita" wrote: Hi, Can you recommend an XML parser which is faster than XML::Twig? I need to use an XML parser that can parse the XML files chunk by chunk and which works faster (much fa

Fast XML parser?

2012-10-25 Thread Octavian Rasnita
Hi, Can you recommend an XML parser which is faster than XML::Twig? I need to use an XML parser that can parse the XML files chunk by chunk and which works faster (much faster) than XML::Twig, because I tried using this module but it is very slow. I tried something like the code below, but I h

Re: regular expression help

2012-09-21 Thread Octavian Rasnita
From: "Dr.Ruud" On 2012-09-20 09:08, Octavian Rasnita wrote: my ( $file_name ) = $data =~ /([^\\]+)$/g; No need for that g-modifier. -- Ruud Yes, you are right. I added it by mistake. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comman

Re: regular expression help

2012-09-20 Thread Octavian Rasnita
From: "Irfan Sayed" i have string 'c:\p4\car\abc\xyz.csproj' i just need to match the xyz.csproj i tried few option but does not help. can someone please suggest regards irfan my $data = 'c:\p4\car\abc\xyz.csproj'; my ( $file_name ) = $data =~ /([^\\]+)$/g; print $file_name; It will p

Re: printf

2012-08-31 Thread Octavian Rasnita
From: "Torsten" > Hey, > > I found a strange behaviour for printf: If you do for example > > printf "%d",29/100*100 > > you get 28. But with > > printf "%d",29*100/100 > > it's 29. Seems to be related to rounding. Yep use bignum; might help. Octavian -- To unsubscribe, e-mail: beginne

Re: List::MoreUtils

2012-08-09 Thread Octavian Rasnita
From: "Martin Barth" Subject: Re: List::MoreUtils Hi Shlomi, Everyone On 12:38:40 08/08/2012 Shlomi Fish wrote: perl-5.10.1 is very old and no longer actively maintained. There's already perl-5.16.0. List::MoreUtils is at version 0.33: https://metacpan.org/release/List-MoreUtils . I am awa

Re: Cannot connect to Oracle db; script will not run

2012-07-31 Thread Octavian Rasnita
Hi, I've seen: $connString = 'dbi:Oracle:SID' Maybe it helps to add the SID like: $connString = 'dbi:Oracle:SID=SID_NAME' where SID_NAME is the SID you want to use... --Octavian - Original Message - From: "Warren James - jawarr" To: "beginners" ; "dbi-users" Cc: "newbie01 perl" ;

Re: Something mojolicious

2012-07-05 Thread Octavian Rasnita
Have you tried localhost:3000 or the correct URL http://localhost:3000 ? --Octavian - Original Message - From: "lina" To: Sent: Thursday, July 05, 2012 1:03 PM Subject: Something mojolicious > Hi, > > Today I tried to write my first hello script, > > $ mojo generate lite_app hello

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: Subject: Re: Using perlbrew to change Perl version for scripts On Jun 3, 2012, at 6:06 AM, Octavian Rasnita wrote: but a user has only a single cron job so it is not such a big issue. And therein lies the rub. Why can't perlbrew do that for us automatically? perlbrew switc

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: "Shawn H Corey" Subject: Re: Using perlbrew to change Perl version for scripts On 12-06-03 03:01 AM, Octavian Rasnita wrote: So for running cron jobs with a version of Perl installed by Perlbrew, I just needed to add the following lines at the start of cron script: PERL

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: "Chris Nehren" Subject: Re: Using perlbrew to change Perl version for scripts On Sat, Jun 02, 2012 at 12:57:22 -0400 , Shawn H Corey wrote: On 12-06-02 12:23 PM, sono...@fannullone.us wrote: > Is it possible to use a shebang line, like #!/usr/bin/env perl, so > that scripts will use the

Re: Utility for generating DB schema?

2012-06-01 Thread Octavian Rasnita
From: "John SJ Anderson" Subject: Re: Utility for generating DB schema? On Friday, June 1, 2012 at 9:22 AM, Mark Haney wrote: On 06/01/2012 08:54 AM, John SJ Anderson wrote: > > Look at DBIx::Class::Schema::Loader. Yeah, but I could have sworn there was another utility that did the same thi

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Octavian Rasnita
From: "Mark Haney" Subject: Re: Template toolkit issue [SOLVED] One, in the original post of mine about PHP and perl interaction I was told to try the template-toolkit, mason, dancer, catalyst, etc. I looked into each one and decided on the toolkit. At no time did anyone mention that it's 'un

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Octavian Rasnita
From: "Mark Haney" Subject: Re: Template toolkit issue [SOLVED] On 05/02/2012 03:53 PM, Octavian Rasnita wrote: Perl is a programming language, not a language which is used only for web programming, so why should you think that Template Toolkit includes CGI? Nowadays CGI is v

Re: Template toolkit issue [SOLVED]

2012-05-02 Thread Octavian Rasnita
From: "Mark Haney" Subject: Re: Template toolkit issue [SOLVED] On 05/02/2012 11:01 AM, Lawrence Statton wrote: I see nowhere in this code where you are producing HTTP headers. Are you calling this as a CGI? Which web server? I got it working now. I was under the assumption that the TE

Re: ENV variable or others things

2012-04-27 Thread Octavian Rasnita
From: "Zapp" > when I use bash, I can write a file ( a.sh ) like : > abc='abc' > ddd='aaa' > ... > then I can load it in other file: > source a.sh > echo $abc $ddd # it always work! > > but in perl , how can I do like that ? > > I write a file ( my_env.pl ) like: > #!/usr/bin/perl -w > my $abc='

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Octavian Rasnita
Hi, From: "Mark Haney" > As for the feature set I mentioned, I've been running into limitations > with using perl to populate dropdown boxes dynamically and such. > Granted, I'm sure there's a nice neat way to do it, but I couldn't find > anything on the interwebs to show me how, and since I k

Re: [ask] oracle date

2012-03-09 Thread Octavian Rasnita
From: "Eko Budiharto" Subject: [ask] oracle date > dear list, > I have a date data extracted from oracle, stored as this 1993-11-30 > 00:00:00. The datatype in the oracle is date. I would like to save into > mysql (the datatype is also date), I got an error. When I do a small > debug, I print

Re: Chromatics - Why is funding Perl So Hard

2011-11-23 Thread Octavian Rasnita
From: "Randal L. Schwartz" ""Octavian" == "Octavian Rasnita" writes: Octavian> It would be nice to have a Perl with strict and warnings Octavian> enabled by default that could be disabled on request This way Octavian> the maintained old projects co

Re: Chromatics - Why is funding Perl So Hard

2011-11-18 Thread Octavian Rasnita
"Perhaps backwards compatibility is cannibalizing usage from current" I agree with this. Python had a totally different approach and it seems that it was a good idea. It would be nice to have a Perl with strict and warnings enabled by default that could be disabled on request This way the mainta

Re: Validating input

2011-10-02 Thread Octavian Rasnita
From: "Shlomi Fish" On Sun, 2 Oct 2011 00:07:34 +0300 "Octavian Rasnita" wrote: > Hi, > > Does anyone have some suggestions for what restrictions should be used on a > site to be secure? > Do you know some sites where I can get information about this subj

Validating input

2011-10-01 Thread Octavian Rasnita
Hi, Does anyone have some suggestions for what restrictions should be used on a site to be secure? Do you know some sites where I can get information about this subject? Most of the text I read said that the variables should be filtered before inserting them in DB, but never gave details for wha

Re: John SJ Anderson is Perl Beginners list moderator

2011-09-30 Thread Octavian Rasnita
From: "Casey West" > Hello list members, > > John SJ Anderson has accepted the role of list moderator. He'll be > responsible for the moderation of this list as he sees fit. If you have any > questions about that you can ask him directly or read the somewhat out of > date FAQ about the list: > >

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-09-29 Thread Octavian Rasnita
From: "Rajeev Prasad" Hi, without using CGI.pm how can i collect the values of a multiselect element? say for e.g.: < select name="hobbies" id="hobbies" multiple> Reading Books Writing Stories Collecting Coins Cross Stitching Tenis Playing Cricket < /select> when the form is submitted, i have

Re: best AJAX tool/module ?

2011-09-28 Thread Octavian Rasnita
From: "Rajeev Prasad" Hello, what would be the best AJAX module to use with perl? is cgi::ajax best? I am not using CGI in my project so far so checking if there is anything else out there... are there any other modules which would be easy (natural fit) to work with data returned in JASON?

Re: GUI Library

2011-09-28 Thread Octavian Rasnita
From: "Shawn H Corey" > On 11-09-28 06:59 AM, Francisco Rivas wrote: >> Hello, I am planning to write a very small stand alone application to write >> some file and I would like to know which is the best/recommended GUI library >> for Perl. I have read about wxPerl, GTK2, PerlQT4 and even Tk, but

Re: GUI Library

2011-09-28 Thread Octavian Rasnita
From: "Alan Haggai Alavi" On 09/28/11 16:29, Francisco Rivas wrote: Hello, I am planning to write a very small stand alone application to write some file and I would like to know which is the best/recommended GUI library for Perl. I have read about wxPerl, GTK2, PerlQT4 and even Tk, but I wou

Re: GUI Module

2011-08-23 Thread Octavian Rasnita
From: "Emeka" Hello All, I am thinking of check out GUI ... so I would need to know where to start off. Is there a GUI module with Perl? Or am I going to pull one from web? Install WxPerl. It is powerful, portable, much better than Tk. Octavian -- To unsubscribe, e-mail: beginners-unsub

Re: Variable Assignment

2011-08-16 Thread Octavian Rasnita
From: "shawn wilson" > On Aug 16, 2011 9:48 PM, "John W. Krahn" wrote: >> >> Joseph L. Casale wrote: >>> >>> What is the correct way to quickly assign the result of a regex against >>> a cmdline arg into a new variable: >>> >>> my $var = ($ARGV[0] =~ s/(.*)foo/$1/i); >> >> >> my ( $var ) = $ARGV[

Re: Variable Assignment

2011-08-16 Thread Octavian Rasnita
From: "Joseph L. Casale" What is the correct way to quickly assign the result of a regex against a cmdline arg into a new variable: my $var = ($ARGV[0] =~ s/(.*)foo/$1/i); Obviously that's incorrect but is there a quick way without intermediate assignment? Thanks! jlc Yes, you can use: ( my

A beginners question regarding Perl on Windows 7

2011-08-10 Thread Octavian Rasnita
Hi all, Even though in most cases I use Perl in production under Linux, I use to develop the programs under Windows, and until now I used Perl only under Windows XP. Do you know if Perl works fine under Windows 7 also? Thanks. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.or

Re: Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
ust like in case it would have used %parameters instead of @parameters... it doesn't break. Octavian - Original Message - From: "Shlomi Fish" To: "Octavian Rasnita" Cc: Sent: Sunday, August 07, 2011 3:52 PM Subject: Re: Using an undefined value as a hash ref

Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
Hi, I made the following test script: use strict; use warnings FATAL => 'all'; use LWP::UserAgent; my $fields; my $ua = LWP::UserAgent->new; my $res = $ua->get( 'http://www.google.com/', %$fields ); This script runs with no errors, although the variable $fields is undefined and it is used as

Re: Best way to parse this type of data.

2011-07-11 Thread Octavian Rasnita
From: "shadow52" Hello Everyone, I have finally hit my max times of banging my head on the best way to parse some data I have like the following below: name = "Programming Perl" distributor = "O'Reilly" pages = 1077 edition = "2nd" Authors = "Larry Wall Tom Christiansen Jon Orwant" The last

Re: Creating letter combination generator

2011-07-10 Thread Octavian Rasnita
From: "Chris Nehren" ... Perl works the best and is the easiest to use on Unix or Unix-like machines. If you're on Windows, get virtual machine software and pick a Linux distribution (I use Debian). This pretty unilaterally discards the efforts Adam Kennedy and others have put into Strawberry

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: On Jun 27, 2011, at 1:27 PM, Bob McConnell wrote: The problem with this is that, due to the spam plague, most servers will no longer tell you if an address is valid. Many do not even return a bounce message, but silently discard any and all mail for unknown addresses. Good points. I'm

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: On Jun 27, 2011, at 12:20 PM, Wagner, David wrote: > Unless you make it a two step process: 1) Send email and individual has to > reply or click an url, I don't believe you can know if the account is active, > etc WITOUT the sending. I can see how that would work fine for a forum, but t

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: I'd like to find a way to check if an e-mail address that is entered on a form is valid or, at the very least, just not invalid. Checking CPAN, I ran across a module called Email::Verify::SMTP. Has anyone used this before? If so, what are your impressions? If this is not a good mod

Re: Different results for say @array

2011-06-08 Thread Octavian Rasnita
From: I ran across something interesting today. I'm getting different results for an array depending on how it's used, as follows: say @fieldnames; prints UIDGroupNamelastmodcategoryhtmlhidettsortorder - say "fieldnames = " . @fieldnames; prints fieldnames = 7 - say "fieldnames = @

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-29 Thread Octavian Rasnita
From: "Agnello George" > > >> This interpolation of string variables into an SQL statement is an SQL >> injection attack waiting to happen: >> >> * http://en.wikipedia.org/wiki/SQL_injection >> >> * http://community.livejournal.com/shlomif_tech/35301.html >> >> * http://bobby-tables.com/ >> >> Pl

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-28 Thread Octavian Rasnita
From: "Agnello George" > great !! i used tinymce in my insert form that solved all my html alignment > problem :) It would be much great if you wouldn't quote more than 140 lines of previous messages just to answer a single line... :-) Octavian -- To unsubscribe, e-mail: beginners-unsubscr..

  1   2   3   4   5   >