Re: A Regular Expression Problem in Perl 5.28

2023-03-28 Thread Sam
scaping and quoting mistakes in the original. uri I would think /^\d{5,6}/ would be what is needed? He wanted 5 or 6 digits. --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: use Time::Piece

2018-10-31 Thread Sam
On 10/30/2018 10:24 PM, Martin McCormick wrote: I can not seem to send Time::Piece any syntax it likes. The file I am reading sends a time stamp that should conform to RFC822 date stamps. An example of a stamp follows: main::(lwx:204):my @obtime = split( /\,+/, $dat

Re: Strange HASH(0x2ced735) values

2017-02-21 Thread Sam
accidentally passing a hashref instead of a scalar value. One can also turn on the DBI trace log as well. It will show the inserts with the data. Of course it won't tell you where it is running from code-wise. And it won't help if you can't get the bad values to appear on demand

Re: Perl executable problem...

2015-11-13 Thread Sam
I've never used active state, you might try strawberry perl if you are on windows. --Sam On 11/12/2015 07:53 AM, Rui Fernandes wrote: /Hi, I'm having a problem compiling a perl script to run in my windows 7 32 bits environment. It compiles with Perl Dev Kit from active state, but

Re: Regarding perl learning

2015-07-02 Thread Sam
On 07/01/2015 01:29 PM, bikram behera wrote: Hi Team, My name is Bikram Behera , am new in perl want to learn perl. Thanks, Bikram Behera I'd recommend a good book: http://amzn.com/1118013840 --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e

Re: perl certification

2015-05-20 Thread Sam
On 05/20/2015 12:45 PM, Chankey Pathak wrote: Certificates are of no value in my opinion. But a good github profile is :) --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Need Advice on Perl learning

2015-04-12 Thread Sam
t of the more modern stuff going on in the perl ecosphere. If you really want to know some of the lower level stuff, Programming Perl is a good ( although a little long!) read too. Mastering Perl by Brian has a new version out, with a few advanced sections, but I have not personally read it (

Re: Good books to study perl interpreter

2015-03-31 Thread Sam
On 03/30/2015 11:42 AM, rakesh sharma wrote: Hi all Please suggest nice books to know perl interpreter. In depth books is that i am looking for. Thanks Rakesh Perl guts can be nice: http://cpansearch.perl.org/src/RURBAN/illguts-0.49/index.html http://perldoc.perl.org/perlguts.html --Sam

Re: Yet another first website

2014-11-08 Thread Sam
to see all your design mistakes later on. The point is, just start somewhere and keep working on it :) --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Best way to install perl modules

2014-10-09 Thread Sam
Take note at least on rehl, you have to run 'yum install perl perl-core' to get a full working perl (If I remember right). --Sam On 10/09/2014 04:11 AM, Benjamin Fernandis wrote: Hi Shlomi, Thanks. I also feel that centos/rhel perl seems brokern in terms of dependencies issue

Re: Best way to install perl modules

2014-10-04 Thread Sam
pment Tools" If you are on a debian based system try running: aptitude install build-essential --Sam On 10/04/2014 11:39 PM, Benjamin Fernandis wrote: Hi Mike, Thanks for your kind response. I tried cpanm instead of cpan, but many times, it does not install require dependencies for mo

Re: Any project like Ipython/Bpython in Perl.

2014-09-15 Thread Sam
| SCSA +91-9703206361 Every task has a unpleasant side .. But you must focus on the end result you are producing. If you are just looking for a REPL, look at: https://metacpan.org/pod/Devel::REPL Just install with cpan or cpan-minus --Sam -- To unsubscribe, e-mail: beginners-unsubscr

Re: Books or links or knowledge base

2014-09-13 Thread Sam
buttons) --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: async, non blocking tcp server

2014-08-28 Thread Sam
create new process for client my $pid = fork(); if($pid == 0){ processClient($client); } else{ close($client); waitpid(-1,WNOHANG); } } --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@per

Re: Problem installing a module

2014-07-23 Thread Sam
it installed flawlessly. Thank you for your reply Chris Can you post those changes or a link to the mailing list? It might be wise for someone to update the module --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Impossible to install Perl modules

2014-07-08 Thread Sam
lso note on redhat, they did weird stuff with system perl. The "perl" package on redhat will give you nothing more than /usr/bin/perl For the default modules (perhaps YAML?) that are supposed to be distributed with perl, install perl-core --Sam -- To unsubscribe, e-mail: beginne

Re: How to Upgrade Perl to latest Stable Version.

2014-07-08 Thread Sam
ve off the directory parameters for '/opt/perl-5.20.0/'. Everything will default into ~/perl5 --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl CGI-html quotation marks

2014-07-04 Thread Sam
On 07/04/2014 12:41 AM, Shaji Kalidasan wrote: Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON or: print qq{http://www.example.com')">}; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://l

Re: Planning to buy Hard Copy Book

2014-06-11 Thread Sam
Depends on your level. I enjoyed "Beginning Perl" by Curtis Poe. It covers alot of areas in perl, from the different object frameworks to a really nice section on testing. If you really want to get serious, get a copy of the larger "Programming Perl" as well. --Sam On

Re: References

2014-05-14 Thread Sam
g up the "Beginning Perl" book by Curtis Poe :) --Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: OO perl programming

2014-02-06 Thread Sam
e because I had read that book. Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: OO perl programming

2014-02-05 Thread Sam
On 02/05/2014 04:30 PM, kavita kulkarni wrote: Can somebody suggest me good book to learn/practice object oriented Perl programming. Regards, Kavita :-) Beginning Perl by Curtis Poe is a really good read. Also there are many tutorials for perl moose online. Sam -- To unsubscribe, e

for rss 2.0?

2013-01-22 Thread Sam Lee
Hey, I am trying to add an with : item title> http://example.com/1 * sam* Here is perl code: =8<= use strict; use warnings; use XML::RSS; my $rss = XML::RSS->new(version => '*2.0*'); $rss->add_module(prefix => 'dc', uri => 'http://pu

Re: Class::Struct comparison & MOP

2011-03-07 Thread Sam Steingold
Hi Shlomi, Thanks for your kind reply. > * Shlomi Fish [2011-03-04 20:37:51 +0200]: > On Friday 04 Mar 2011 18:47:40 Sam Steingold wrote: >> 1 How do I compare Class::Struct instances (objects) >> for equality (or precedence)? >> >> E.g., >> >&g

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. then

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. t

Class::Struct comparison & MOP

2011-03-04 Thread Sam Steingold
but I would like to preserve the underlying array structure for passing to Text::CSV functions (I guess I could use "values" for that too). E.g., I want to be able to write something like my $mystruct_foo_pos = MyStruct->getpos('foo'); and have $mystruct_foo_pos set to 0. t

Re: Getting garbage fast

2010-03-23 Thread Sam
dev/urandom of=ranfile bs= Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

How to read RegEx match in to a variable?

2009-06-12 Thread Sam Munzani
27;t know how to pass RegEx matches strings to value of another variable. Any hints, examples? Thanks, Sam -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

DBD::SQLite and column_info

2008-09-03 Thread sam . paquin
How do you use column_info with DBD::SQLite? Any set of parameters I use result in getting back undef. All of the following commands return undef but $DBI::err remains false: $info = $dbh->column_info('%', '%', '%', '%'); $info = $dbh->column_info('%', '%', 'mytable', '%');

umask

2007-10-27 Thread sam
Hello everyone! This is my first time posting anywhere about perl, so be gentle. Let me start off with my script: #!/usr/local/bin/perl #Author: Sam Ganim 10/26/07 print "What Lesson are you on? "; chop($lesson = ); print "How many exercises are there? "; chop($exercises =

obtaining file properties

2007-07-14 Thread Sam DeForest
butes. Im looking to find "size" and "create date/time". Could someone point me in a good direction so I can read into further? I appreciate the help, Sam

RE: Free Perl Editor

2007-01-02 Thread Sam DeForest
B.C. > Canada ) > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> Try perl-expressi found it has many useful features. www.perl-express.

Help with rotating logs

2006-08-31 Thread binu sam
Hi, I am trying to write a script that can take log files in /var/log to a different directory (/opt/backup) every week. Each week it has to deposit the logs on a seperate directory with proper dates Can anyone has a script for this Thanks

List OK?

2006-07-31 Thread Sam DeForest
I have not received any list topics lately, is the list broken?? Or am I ? Trying to stay cool in New England, Sam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: calling a perl script on windows

2006-07-12 Thread Sam DeForest
licked on the file within windows.it will automatically run the perl interpreter to run the script. Hope that helps. Regards, Sam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

using XS for calling exported methods from a DLL

2005-10-14 Thread sam joseph
esolved externals NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x460' Stop. where num is the exported method which I have written in teh file SimpleDLL3.cpp int _stdcall num(int x) { return x+1; } I have written the XSUB in ext2.xs file as shown be

calling C DLL from Perl using h2xs

2005-10-13 Thread sam joseph
7; : return code '0x460' Stop. where num is the exported method which I have written in teh file SimpleDLL3.cpp int _stdcall num(int x) { return x+1; } I have written the XSUB in ext2.xs file as shown below: int num(x) int x Why does it give an error for _num or

FW: Re: Urgent help in h2xs

2005-10-03 Thread sam joseph
ot;Sisyphus" <[EMAIL PROTECTED]> To: "sam joseph" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, Subject: Re: Urgent help in h2xs Date: Mon, 3 Oct 2005 18:11:33 +1000 - Original Message - From: "sam joseph" <[EMAIL PROTECTED]> To

FW: Re: Urgent help in h2xs

2005-10-02 Thread sam joseph
tory at C:/Perl/lib/ExtUt ils/MM_Unix.pm line 3079. and the line 3079 of MM_Unix.pm looks like this : open(FH,$parsefile) or die "Could not open '$parsefile': $!"; Anyone knowing why such kind of an error message is coming ??? From: "sam joseph" <[EMAIL P

Re: Urgent help in h2xs

2005-10-02 Thread sam joseph
some precious time in searching information in this area. Thanks, Sam. I From: Xiaofang Zhou <[EMAIL PROTECTED]> To: sam joseph <[EMAIL PROTECTED]>, beginners@perl.org Subject: Re: Urgent help in h2xs Date: Sun, 2 Oct 2005 11:58:20 +0800 Hi, Sam, Check what version of VC u'r

Urgent help in h2xs

2005-10-01 Thread sam joseph
types.h not present in sys folder and many other header files missing Can anyone tell me how can i fix this problem and get teh correct C:\Perl\lib\CORE\sys\ which contains all the required header files. Any help will be appreciated. Thanks, Sam

RE: 'format' puzzle

2005-04-14 Thread Sam
Thanks. Was right there in the manual... -Sam --- "Moon, John" <[EMAIL PROTECTED]> wrote: > Subject: 'format' puzzle > > How can I create a perl 'format' string that begins with a comment (#)? > > Eg. > > format STDOUT_TOP = >

'format' puzzle

2005-04-13 Thread Sam
How can I create a perl 'format' string that begins with a comment (#)? Eg. format STDOUT_TOP = # Field1 Field2 @<< @||| @||| . If I try '\#' then I see the backslash. I just want the pound char. TIA, -Sam __

Trouble Calling Modules...

2005-01-06 Thread Sam Pinizzotto
or_sheetname); # &validate_one_code($acct_or_sheetname); } else { $return_this = &validate_spreadsheet ($acct_or_sheetname,$columns); # &validate_spreadsheet($acct_or_sheetname,$columns); } Thanks, Sam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: can somebody tell me what this means

2004-03-12 Thread sam lehman
On Thu, 11 Mar 2004 11:07:24 +0100, Ralf Schaa <[EMAIL PROTECTED]> wrote: sam lehman wrote: i got his code from a program i found, and i was wondering that the ? and the : are for? $target = (@digits % 2) ? ($digits[int(@digits/2)]) : ([EMAIL PROTECTED]/2-1]); conditional statement

can somebody tell me what this means

2004-03-11 Thread sam lehman
i got his code from a program i found, and i was wondering that the ? and the : are for? $target = (@digits % 2) ? ($digits[int(@digits/2)]) : ([EMAIL PROTECTED]/2-1]); -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: Timing out without alarm function

2004-02-03 Thread Sam Masiello
Thank you very much, Daniel! --Sam Daniel Staal wrote: > --As off Tuesday, February 3, 2004 10:09 AM -0700, Sam Masiello is > alleged to have said: > >> I have a script where I am sending some data over a socket, but after >> X seconds I want the operation to time out.

Timing out without alarm function

2004-02-03 Thread Sam Masiello
am trying to allot for a hang in the middle of the connection. Thank you in advance for any suggestions! --Sam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: [Q] How to eval an EXPR once and make it stick

2004-01-28 Thread Sam
--- Rob Dixon <[EMAIL PROTECTED]> wrote: > Sam wrote: > > > > Thanks for all your responses; I learned a bit. > > Good: well done. > > > 1. I wasn't clear on $_ in my email; that's being read elsewhere in > program so > > it's alre

Re: [Q] How to eval an EXPR once and make it stick

2004-01-28 Thread Sam
n not &$re; }; my $expr = $blank ? $re : $nre; do ... while (&$expr and not eof); But I'm not sure which is faster though. Thanks for all your help. --- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Jan 27, Rob Dixon said: > > >Sam wrote: > >>

Re: Generic database access?

2003-09-29 Thread Sam Harris
search google for "Webmon". also check out phpadmin. good luck Sam Harris, Systems Administrator Franklin University 201 S. Grant Avenue Columbus, Ohio 43215-5399 Work: (614)-744-8322 Toll free: 1-877-341-6300 ext. 8322 [EMAIL PROTECTED] http://www.franklin.edu/ >>> [EMAIL

very novice "date" question

2003-02-11 Thread Sam Harris
I am trying to extract last month's date from today's date as in "Jan" or "Feb"is there a switch to enable that ? Thanks Sam Harris, Internet Services Franklin University 201 S. Grant Avenue Columbus, Ohio 43215-5399 Work: (614)-744-8322 Toll free: 1

web server 500 error

2003-02-04 Thread Sam Mauntz
To all you perl gurus out there... I've got this file named schedule.pl...in the interest of troubleshooting my problem, I've thinned my script to the following code... #!/usr/bin/perl print "\n"; print "\n"; print "Perl Test Page\n"; print "\n"; print "\n"; print "Perl Test Page\

Re: error with external command..

2002-12-12 Thread Sam Harris
The way how it is in my code is on one line, the slash at the end has to be there on unix command line for it to work !!??? so the line is : system"find . -ctime -1 -exec cp {} /opt/WWW/web_stats/logs/daily/newfiles \"; Sam Harris, Internet Services Franklin University 201 S. Gr

error with external command

2002-12-12 Thread Sam Harris
nks for your help in advance. Sam Harris, Internet Services Franklin University 201 S. Grant Avenue Columbus, Ohio 43215-5399 Work: (614)-744-8322 Toll free: 1-877-341-6300 ext. 8322 [EMAIL PROTECTED] http://www.franklin.edu/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

< a very novice > file location

2002-12-05 Thread Sam Harris
I m very new to perl, please notice the errors I am including and tell me how simple it is to correct them :) I have MD5.pm and Std.pm to be used in a directory above the one where perl is, my script gives me an error that says # ./net_watch ../net_watch[2]: use: not found ../net_watch[3]: u

need help with a bug

2002-11-19 Thread Sam Harris
>new->addfile(PASSWD)->hexdigest,"\n"; $md5->addfile(PASSWD); print $md5->hexdigest."\n"; close(PASSWD); Sam Harris, Internet Services Franklin University 201 S. Grant Avenue Columbus, Ohio 43215-5399 Work: (614)-744-8322 Toll free: 1-877-341-6300 ext. 8322 [EMAIL PRO

Changing unix user account using perl?

2002-09-06 Thread Sam Graves
Is it possible to `su - user` and send the password via perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

thx for your help

2001-11-03 Thread Petazzoni Maxime aka sam
hi every one i'm found the solution for my threads. i've replaced threads by the select function, unsing vectors as described in the perlfunc manpage. i obtain sthing like that (see attachement) thx for your help sam -- ..________. | sam &

finishing a thread

2001-11-02 Thread Petazzoni Maxime aka sam
hi i wanna know how i could finish a thread that i've just detach. is there a finish or kill like command ? thx a lot sam -- ..____. | sam <°)(°> mail : [EMAIL PROTECTED]| | web: /\\//\ www.nova-mag.org - icq

catching output in detached threads

2001-11-02 Thread Petazzoni Maxime aka sam
hello i wanna know if it was possible to catching output in detached threads. thx a lot sam -- ... | sam <°)(°> mail : [EMAIL PROTECTED]| | web: /\\//\ www.nova-mag.org - icq : 100

thread problems

2001-11-02 Thread Petazzoni Maxime aka sam
you'll find what's wrong. thx a lot sam -- ..____. | sam <°)(°> mail : [EMAIL PROTECTED]| | web: /\\//\ www.nova-mag.org - icq : 100551837 | ..__\_/\_/. client.pl serv

problem when I sh Configure to setup perl 5.00503.

2001-07-11 Thread Sam Park
I'm having problem when I try to setup the perl5.00503. When I run sh Configure, it hangs at the system manual is in /usr/man/man1 Here is error.. Congratulations, your kernel has secure setuid scripts! No need to emulate SUID scripts since they are secure here. System manual is in /usr/man/ma

RE: [OT:style]deleting a line with a particular string.

2001-06-29 Thread Sam Lander
of playing gave me: perl -ne "/Recipient/ && s/.*:// && print" Which gave me what I wanted, but is rather unsatisfying (esp to the sedder in me). What do other people do? Shouldn't DWIM come into play here? Sam