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;

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

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

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

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

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" <l...@yagibdah.de> "Octavian Rasnita" <orasn...@gmail.com> writes: From: "lee" <l...@yagibdah.de> 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

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 =

Re: Not working example - from Mastering Perl book

2015-05-03 Thread Octavian Rasnita
, Vincent Lequertier s...@riseup.net 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 main My name is glob Le 03/05/2015 10:01, Octavian Rasnita a écrit

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

Re: Match HTML div ...... /dv 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 can get

Re: Which perl for Windows?

2014-08-05 Thread Octavian Rasnita
From: ESChamp esch...@gmail.com 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

Re: Can't Install Mojolicious on Shared Server

2014-07-31 Thread Octavian Rasnita
From: Mike Flannigan mikef...@att.net 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 mikef...@att.net 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:

Using filenames with Unicode chars

2014-06-09 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.

Re: CPAN unavailable

2014-05-21 Thread Octavian Rasnita
From: Shlomi Fish shlo...@shlomifish.orgHi all, On Wed, 21 May 2014 11:49:17 +1000 sisyph...@optusnet.com.au 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.

Re: Importing subs + strict and warnings using Exporter

2014-03-31 Thread Octavian Rasnita
From: Ruud H.G. van Tol rv...@isolution.nl On 2014-03-30 19:10, Octavian Rasnita wrote: From: Dr.Ruud rvtol+use...@isolution.nl 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 Thanks

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: Importing subs + strict and warnings using Exporter

2014-03-30 Thread Octavian Rasnita
From: Dr.Ruud rvtol+use...@isolution.nl 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

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

Re: web scraper modules

2014-02-19 Thread Octavian Rasnita
From: Mike McClain mike.j...@nethere.com 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

Re: OO perl programming

2014-02-13 Thread Octavian Rasnita
From: Robert Wohlfarth On Thu, Feb 13, 2014 at 2:46 PM, Jim Gibson jimsgib...@gmail.com 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

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 fluca1...@infinito.it To: beginners@perl.org Sent: Monday, February 10, 2014 5:01 PM Subject: error installing

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
To: Octavian Rasnita orasn...@gmail.com Cc: beginners@perl.org Sent: Tuesday, February 11, 2014 9:00 AM Subject: Re: error installing catalyst via cpan On Mon, Feb 10, 2014 at 6:22 PM, Octavian Rasnita orasn...@gmail.com wrote: Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask

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

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

Re: Locating files in sub-directories

2013-12-17 Thread Octavian Rasnita
From: SSC_perl p...@surfshopcart.com 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

Re: Locating files in sub-directories

2013-12-16 Thread Octavian Rasnita
From: SSC_perl p...@surfshopcart.com 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

Re: Help needed with here documents (security?)

2013-10-24 Thread Octavian Rasnita
From: Janek Schleicher janek_schleic...@yahoo.de 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,

Re: Help needed with here documents (security?)

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

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 p...@reason.net To: Perl Beginners beginners@perl.org Sent: Tuesday, October 08, 2013 8:42 PM Subject: Re: Quizzing students with Perl Many thanks for

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 shawnhco...@gmail.com 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

Re: Resources on Multi threading

2013-09-05 Thread Octavian Rasnita
Hi Shlomi, From: Shlomi Fish shlo...@shlomifish.org 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**:

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: 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

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

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: Алексей Мишустин shum...@shumkar.ru To: beginners@perl.org Sent: Friday, June 28, 2013 2:16 PM Subject: Re: REG: How to add perl repository in PPM 2013/6/27 Anitha Sreejith Victor annperl2...@gmail.com: Hi All,

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

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 ping...@gmail.com wrote: On Mon, Jun 3, 2013 at 4:52 PM, Rich Johnson hcir...@gmail.com wrote: Can anyone recommend a good book to use for building a website using Perl? Specifically, I'm looking to build a

Re: module versions

2013-05-15 Thread Octavian Rasnita
From: shawn wilson ag4ve...@gmail.com 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

Re: curiosity about the usage of my

2013-05-11 Thread Octavian Rasnita
From: Luca Ferrari fluca1...@infinito.it On Thu, May 9, 2013 at 6:22 PM, Brandon McCaig bamcc...@gmail.com 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

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 p...@pjcj.net 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, so

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: Shlomi Fish shlo...@shlomifish.org Hi all, On Tue, 12 Feb 2013 09:01:27 -0800 (PST) Rajeev Prasad rp.ne...@yahoo.com 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

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: Tiago Hori tiago.h...@gmail.com 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

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: Bob McConnell r...@cbord.com 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

Re: obfuscating code

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

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: John SJ Anderson geneh...@genehack.org On Tue, Feb 12, 2013 at 10:39 AM, jbiskofski jbiskof...@gmail.com 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.

Re: obfuscating code

2013-02-13 Thread Octavian Rasnita
From: Bob McConnell r...@cbord.com 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

Re: other ways to parse emails from html?

2013-01-31 Thread Octavian Rasnita
From: Jeswin phillyj...@gmail.com 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

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

2013-01-26 Thread Octavian Rasnita
From: Jeswin phillyj...@gmail.com 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.

Re: Building a small web-app in Perl

2013-01-02 Thread Octavian Rasnita
From: Chankey Pathak chankey...@gmail.com 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.

Re: about ORM

2012-12-30 Thread Octavian Rasnita
Hi, From: Feng He fen...@nsbeta.info 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

Re: Fast XML parser?

2012-10-31 Thread Octavian Rasnita
From: Jenda Krynicky je...@krynicky.cz From: Octavian Rasnita orasn...@gmail.com To: beginners@perl.org 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::Twig? I need

Re: Fast XML parser?

2012-10-31 Thread Octavian Rasnita
From: Jenda Krynicky je...@krynicky.cz From: Octavian Rasnita orasn...@gmail.com To: beginners@perl.org 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::Twig? I need

Re: Fast XML parser?

2012-10-31 Thread Octavian Rasnita
From: Jenda Krynicky je...@krynicky.cz From: Octavian Rasnita orasn...@gmail.com 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 0x0004

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: Rob Coops rco...@gmail.com On Mon, Oct 29, 2012 at 9:18 AM, Shlomi Fish shlo...@shlomifish.org wrote: On Mon, 29 Oct 2012 10:09:53 +0200 Shlomi Fish shlo...@shlomifish.org wrote: Hi Octavian, On Sun, 28 Oct 2012 17:45:15 +0200 Octavian Rasnita orasn...@gmail.com wrote: From

Re: Fast XML parser?

2012-10-29 Thread Octavian Rasnita
From: Shlomi Fish shlo...@shlomifish.org On Mon, 29 Oct 2012 10:09:53 +0200 Shlomi Fish shlo...@shlomifish.org wrote: Hi Octavian, On Sun, 28 Oct 2012 17:45:15 +0200 Octavian Rasnita orasn...@gmail.com wrote: From: Shlomi Fish shlo...@shlomifish.org Hi Octavian, Hi Shlomi

Re: Fast XML parser?

2012-10-28 Thread Octavian Rasnita
From: Shlomi Fish shlo...@shlomifish.org Hi Octavian, On Thu, 25 Oct 2012 14:33:15 +0300 Octavian Rasnita orasn...@gmail.com 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

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

Re: regular expression help

2012-09-21 Thread Octavian Rasnita
From: Dr.Ruud rvtol+use...@isolution.nl 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

Re: regular expression help

2012-09-20 Thread Octavian Rasnita
From: Irfan Sayed irfan_sayed2...@yahoo.com 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;

Re: printf

2012-08-31 Thread Octavian Rasnita
From: Torsten dorsch...@yahoo.de 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:

Re: List::MoreUtils

2012-08-09 Thread Octavian Rasnita
From: Martin Barth mar...@senfdax.de Subject: Re: List::MoreUtils Hi Shlomi, Everyone On 12:38:40 08/08/2012 Shlomi Fish shlo...@shlomifish.org 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:

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 james.war...@acxiom.com To: beginners

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 lina.lastn...@gmail.com To: beginners@perl.org Sent: Thursday, July 05, 2012 1:03 PM Subject: Something mojolicious Hi, Today I tried to write my first hello script,

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: Chris Nehren c.nehren/beginn...@shadowcat.co.uk 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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: Shawn H Corey shawnhco...@gmail.com 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

Re: Using perlbrew to change Perl version for scripts

2012-06-03 Thread Octavian Rasnita
From: sono...@fannullone.us 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

Re: Utility for generating DB schema?

2012-06-01 Thread Octavian Rasnita
From: John SJ Anderson geneh...@genehack.org 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

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Octavian Rasnita
From: Mark Haney ma...@abemblem.com 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

Re: Template toolkit issue [SOLVED]

2012-05-03 Thread Octavian Rasnita
From: Mark Haney ma...@abemblem.com 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

Re: Template toolkit issue [SOLVED]

2012-05-02 Thread Octavian Rasnita
From: Mark Haney ma...@abemblem.com 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

Re: ENV variable or others things

2012-04-27 Thread Octavian Rasnita
From: Zapp zapp.pref...@gmail.com 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

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Octavian Rasnita
Hi, From: Mark Haney ma...@abemblem.com 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,

Re: [ask] oracle date

2012-03-09 Thread Octavian Rasnita
From: Eko Budiharto eko.budiha...@gmail.com 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

Re: Chromatics - Why is funding Perl So Hard

2011-11-23 Thread Octavian Rasnita
From: Randal L. Schwartz mer...@stonehenge.com Octavian == Octavian Rasnita orasn...@gmail.com 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 could be easily

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

Re: Validating input

2011-10-02 Thread Octavian Rasnita
From: Shlomi Fish shlo...@shlomifish.org On Sun, 2 Oct 2011 00:07:34 +0300 Octavian Rasnita orasn...@gmail.com 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 subject

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

Re: John SJ Anderson is Perl Beginners list moderator

2011-09-30 Thread Octavian Rasnita
From: Casey West ca...@geeknest.com 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

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 rp.ne...@yahoo.com 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 optionReading Books/option optionWriting Stories/option optionCollecting Coins/option optionCross Stitching/option

Re: GUI Library

2011-09-28 Thread Octavian Rasnita
From: Alan Haggai Alavi alanhag...@alanhaggai.org 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

Re: GUI Library

2011-09-28 Thread Octavian Rasnita
From: Shawn H Corey shawnhco...@gmail.com 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

Re: best AJAX tool/module ?

2011-09-28 Thread Octavian Rasnita
From: Rajeev Prasad rp.ne...@yahoo.com 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

Re: GUI Module

2011-08-23 Thread Octavian Rasnita
From: Emeka emekami...@gmail.com 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,

Re: Variable Assignment

2011-08-17 Thread Octavian Rasnita
From: shawn wilson ag4ve...@gmail.com On Aug 16, 2011 9:48 PM, John W. Krahn jwkr...@shaw.ca 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 ) =

Re: Variable Assignment

2011-08-16 Thread Octavian Rasnita
From: Joseph L. Casale jcas...@activenetwerx.com 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

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:

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 a

Re: Using an undefined value as a hash reference

2011-08-07 Thread Octavian Rasnita
in case it would have used %parameters instead of @parameters... it doesn't break. Octavian - Original Message - From: Shlomi Fish shlo...@shlomifish.org To: Octavian Rasnita orasn...@gmail.com Cc: beginners@perl.org Sent: Sunday, August 07, 2011 3:52 PM Subject: Re: Using an undefined value

Re: Creating letter combination generator

2011-07-11 Thread Octavian Rasnita
From: Chris Nehren c.nehren/beginn...@shadowcat.co.uk ... 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

Re: Best way to parse this type of data.

2011-07-11 Thread Octavian Rasnita
From: shadow52 ras.collec...@gmail.com 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

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: sono...@fannullone.us 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

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: sono...@fannullone.us 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

Re: Verifying an e-mail address

2011-06-27 Thread Octavian Rasnita
From: sono...@fannullone.us 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

Re: Different results for say @array

2011-06-08 Thread Octavian Rasnita
From: sono...@fannullone.us 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 -

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

2011-05-29 Thread Octavian Rasnita
From: Agnello George agnello.dso...@gmail.com 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/

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

2011-05-28 Thread Octavian Rasnita
From: Agnello George agnello.dso...@gmail.com 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:

  1   2   3   4   5   6   7   8   >