Re: Turn off $ anchor greedy behavior

2009-04-17 Thread oryann9
Perl sucks...go Ruby...I did and I am much happier! - Original Message From: Michael Alipio To: Perl Beginners ; John W. Krahn Sent: Tuesday, April 14, 2009 10:06:39 AM Subject: Re: Turn off $ anchor greedy behavior Aha, found it.. The split returned a list and you've just sliced it

Re: bash in perl

2009-02-07 Thread oryann9
- Original Message From: pouliakhina To: beginners@perl.org Sent: Saturday, February 7, 2009 8:59:56 AM Subject: bash in perl Hello, I try to write the name of the current directory in $x: $x = system ("pwd"); But it doesn't work. It also doesn't work in all these combinations:  $x =

sysread, sysseek, sysopen

2008-07-11 Thread oryann9
Are any of these calls deprecated or not recommended? If so, what is recommended regardless of context. sysopen INFILE, \"/dev/vpathXXX\", 0; \$i=0; sysseek(INFILE, 0, 0); while(sysread INFILE, \$buf, 1) {sysseek(INFILE,268435456,1); thank you! -- To unsubscribe, e-mail: [EMAIL PROT

passing args to sub wanted

2008-05-20 Thread oryann9
Greetings, I posted this question on perlmonks and received some great help, specifically from mirod but his recent suggestion is still not working. Problem: This code only works when I hard-code the size to search for in the routine. I try to pass arguments using @_, but it does not work. How

Re: website

2008-05-16 Thread oryann9
On Thu, May 15, 2008 at 3:45 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > It contains a lot of bad advice too. You have been helpful in the past so please be so kind to point out the *bad Advice*... Just saying it's bad really helps no one on a "beginners" list. The way I see it, people will read that

website

2008-05-15 Thread oryann9
Does anyone know what happened to this website: http://web.archive.org/web/20041123005900/http://www.raycosoft.com/rayco/support/perl_tutor.html It says its not available. I thought it was a great reference and explained the diffs between map and grep and even sort. Does anyone have a softcopy o

Re: undefined format error

2008-01-31 Thread oryann9
lients/0x001321EAA5D2/recovery/2007-10-16,23:39/flist /var/opt/ignite/clients/0x00306E4B4C3A/recovery/2008-01-15,09:44/flist /var/adm/sw/save/PHCO_34255/VXVM-RUN/etc/vx/static.d/build/vold.o - Original Message From: oryann9 <[EMAIL PROTECTED]> To: Perl List Sent: Thursday, January 31, 20

undefined format error

2008-01-31 Thread oryann9
Hello List, I am hoping for some help with this. I did post this same question to PerlMonks. Undefined format "STDOUT" called at find_hog.tdy line 173. Line 173 is the 1st write statement, but since there are snips in there 173 is not the actual line in this email. Just look for 1st write state

Re: find2perl

2008-01-17 Thread oryann9
Original Message From: Randal L. Schwartz <[EMAIL PROTECTED]> To: oryann9 <[EMAIL PROTECTED]> Cc: Perl List Sent: Thursday, January 17, 2008 7:04:40 PM Subject: Re: find2perl >>>>> "oryann9" == oryann9 <[EMAIL PROTECTED]> writes: oryan

Re: find2perl

2008-01-17 Thread oryann9
- Original Message From: Randal L. Schwartz <[EMAIL PROTECTED]> To: oryann9 <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2008 6:39:35 PM Subject: Re: find2perl The following message is a courtesy copy of an article that has been posted to perl.beginners as well. &g

Re: find2perl

2008-01-17 Thread oryann9
- Will anyone help me with this issue? These three lines of code work, but work in a way that I am not expecting. When I tell this module to set no_chdir to 1 it should NOT descend directories yet it does. Am I supposed to have a wanted routine other than whats below? Below are the 3 lines I h

Re: find2perl

2008-01-16 Thread oryann9
- Original Message From: oryann9 <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Friday, January 11, 2008 2:32:11 PM Subject: Re: find2perl >You're misusing it. Set it within the wanted() routine when you're >looking at >a directory that you don't want

Re: find2perl

2008-01-11 Thread oryann9
>You're misusing it. Set it within the wanted() routine when you're >looking at >a directory that you don't want to descend. It'll be cleared to 0 >before >calling wanted(), so setting it before calling find() is completely >useless. >-- >Randal L. Schwartz - Stonehenge Consulting Services,

Re: split then match, regex better?

2008-01-09 Thread oryann9
Happy New Year. I have a series of values with the following form: TO_Chr10_final.txt I would like to obtain the value 10, for accounting purposes: my $chr = ( split /_/ , $value ) [ 1 ] ; $chr =~ /chr/i ; $chr = $' ; This seems convoluted. Could someone please criticize this approach or off

Re: find2perl

2008-01-09 Thread oryann9
oryann9> No, but good point. My intent was to determine when -prune was set on oryann9> the CLI what the De-parsed code told me, 1==true, 0==false because oryann9> when I run this code below prune = 0 is not working, its descending oryann9> down "/". You're misu

Re: find2perl

2008-01-07 Thread oryann9
oryann9> $ find2perl /dirname -size +4092k -ls -prune Since -prune is *after* the condition of -size, you're setting prune only for VERY VERY LARGE directories. Is that your intent? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTE

find2perl

2008-01-07 Thread oryann9
In find2perl, prune is set to 1 for true as in DO NOT desend dirs? From the man page "-prune" Do not descend into the directory currently matched. Likewise for File::Find prune set to 1? $ find2perl /dirname -size +4092k -ls -prune thank you ___

file::find

2008-01-04 Thread oryann9
Perl'ers, In my code I call a find routine called xyz based on what the user enters which can be "/" or /\w+. Instead of having one block of code and another block of the same code, but with $File::Find::prune = 1; can't I just pass this $File::Find::prune = 1; to my single find routine based

Re: outlook module

2007-11-20 Thread oryann9
Why not just create a message filter or rule or whatever Outlook calls it (or multiple ones for various criteria)? > > I did and it I cannot get it to work. Be a better pen pal. Text or chat wit

Re: Split string into array

2007-11-18 Thread oryann9
Tom I thought taking a string and assigning it to an array would do it and I was wrong. Here is a sample line of source; "2004-08-03 23:57 1,712,128 GdiPlus.dll" and the recommended split gives me 13 for the number of items. I would like an array that has "2004-08-03", "23:57","1

Re: outlook module

2007-11-01 Thread oryann9
- Original Message From: oryann9 <[EMAIL PROTECTED]> To: Perl List Sent: Thursday, November 1, 2007 1:02:35 PM Subject: Re: outlook module > I am looking for some humble advice. I keep getting annoying emails using the mail client 'Outlook 2003 SP2.' These message

Re: outlook module

2007-11-01 Thread oryann9
> I am looking for some humble advice. I keep getting annoying emails using the mail client 'Outlook 2003 SP2.' These messages are intended for another > person in my company with the same name as I. Not to my surprise, the email support group decided to give this person an email address that

outlook module

2007-11-01 Thread oryann9
All, I am looking for some humble advice. I keep getting annoying emails using the mail client 'Outlook 2003 SP2.' These messages are intended for another person in my company with the same name as I. Not to my surprise, the email support group decided to give this person an email address that

Re: getting nth column of a string

2007-10-28 Thread oryann9
is there a way to get the "nth" column of a string in perl, similar to awk '{print $col_no}' in awk ? ### There are multiple ways, but here are two examples: In the first example, split is what you need to pay attention to. In the second example, @F is the key here.

Re: Net::DNS::Resolver

2007-10-24 Thread oryann9
What output do you get when you don't turn off debug? -- I found what is causing this, $query is 'undef' So was it the intent of the person who wrote this module to have this code act in this way? Do you have a recommendation on how to make this more usable in terms of success/failure lookups

Re: Net::DNS::Resolver

2007-10-24 Thread oryann9
> Why is it when I turn off debug mode, I get no output? What output do you get when you don't turn off debug? -- I found what is causing this, $query is 'undef' So was it the intent of the person who wrote this module to have this code act in this way? Do you have a recommendation on how t

Net::DNS::Resolver

2007-10-24 Thread oryann9
All, Why is it when I turn off debug mode, I get no output? I was expecting output similar to what nslookup shows for a simple query. My goal is to look up by NAME and by IP within 2 domains to determine success and failure. use strict; use warnings; use Carp; my $res = Net::DNS::Resolver-

Re: manipulating csv file fields through perl

2007-08-28 Thread oryann9
--- Lawrence Statton <[EMAIL PROTECTED]> wrote: > > I read the CPAN module DBD::CSV and still had some > > questions. > > > > 1)Does this create a "in memory" database with > data > > from the spreadsheet for manipulation? > > What did reading the source tell you? > > > > > 2)This is really c

Re: manipulating csv file fields through perl

2007-08-28 Thread oryann9
> Something like > #!/usr/bin/perl > use strict; > use DBI; > > my $dbh = > DBI->connect("DBI:CSV:f_dir=/dir/with/the/csvs") > or die "Cannot connect: " . $DBI::errstr; > > $dbh->{'csv_tables'}->{'SomeName'} = { 'file' => > 'SomeName20070827.csv'}; > # tie the table name to the filenam

pittsburgh perl

2007-08-20 Thread oryann9
Anyone from this list going? How much was it last year for entry? It does not say how much it is yet at http://pghpw.org/ppw2007/. :) Shape Yahoo! in your own image. Join our Network Research Panel today

Re: Is it wrong...croak vs die...carp vs warn

2007-08-14 Thread oryann9
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 13, 9:33 pm, [EMAIL PROTECTED] (Oryann9) > wrote: > > > From the Perl Review and my understanding as well, > use > > Carp with keywords carp and croak is supposed to > > provide a

Re: Is it wrong...croak vs die...carp vs warn

2007-08-13 Thread oryann9
--- Paul Lalli <[EMAIL PROTECTED]> wrote: > On Aug 13, 2:39 pm, [EMAIL PROTECTED] (Robert Hicks) > wrote: > > I typically "use Carp;" and change my "die" and > "warn" statements to > > "croak" and "carp". I have read a couple places > croak/carp are a little > > better at telling you what and whe

Re: Regular Expression Problem

2007-08-10 Thread oryann9
> > like to know why this isn't working. The snippet > of code in question > > is as follows > > > > > > if($ARGV[2] =~ /port/i && $ARGV[3] =~ /nick/i) > > { > > > > Well, on a hunch I'd say that snippet returns false > because either > $ARGV[2] doesn't match /port/i, or because $ARGV[3] > doe

Re: How do you use Perl?

2007-08-09 Thread oryann9
> > Just be curious to see how do you guys use Perl > for work.Would you be > > pleased to give a vote below? > > > > [a] CGI/Web Development > > [b] System Administration > > [c] mod_perl -- write Apache handler > > [d] write commercial products > > [e] Biological analysis > > [f] others > a an

slices

2007-08-08 Thread oryann9
Trying to understand from perldoc perldata the diff between these 3 CLIs and why the 2nd CLI has no elements? $ perl -le 'use Data::Dumper; @c = (0,1)[1]; print Dumper([EMAIL PROTECTED]);' $VAR1 = [ 1 ]; $ perl -le 'use Data::Dumper; @c = (0,1)[2]; print Dumper([EMAIL PROTECTED]

Re: Timelocal's input parameters

2007-08-08 Thread oryann9
- > No, it is a hash slice. > > my %foo; > @foo{ qw / one two three / } = qw / uno dos tres / ; > > is equivalent to > > my %foo = ( one => 'uno', > two => 'dos', > three => 'tres' ); > > is equivalent to ... > > my %foo; > $foo{one} = 'uno'; > $foo{two} =

Re: Timelocal's input parameters

2007-08-08 Thread oryann9
> #!/usr/bin/perl > use strict; > use warnings; > use Time::Local; > > my %month; > @month{ qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct > Nov Dec/ } = 0..11; > > my $date = "Thu Mar 9 23:04:03 2006"; > > my (undef, $month, $day, $h, $m, $s, $year) = split > /\W+/, $date; > > my $time = > time

updating Bundle::CPAN in a cygwin XP env

2007-07-06 Thread oryann9
I am running this command: $ perl -MCPAN -e 'install Bundle::CPAN;' and it hangs on the taint check. So I tried it manually and was receiving permission denied errors. See the bottom. snip Checking if your kit is complete... Looks good Writing Makefile for Cwd CPAN: YAML loaded ok (v0.65) snip

Re: "require" question

2007-07-05 Thread oryann9
> When I see code that starts with: > > require 5.6.0; > > Does that mean that the version of Perl can be 5.6.0 > and above or that > it *has to be* 5.6.0? ...that version and above see the output from; perldoc -f require ___

Re: foreach broken in my script

2007-07-05 Thread oryann9
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > > ""Jeff" == "Jeff Pang" <[EMAIL PROTECTED]> > writes: > > "Jeff> May you need eval?Like, > > No. Wrong direction for a solution. Don't suggest > things like this. Plenty > of proper answers elsewhere in the thread, so I > won't repea

Re: CPU/Memory usage of a process on Windows machine

2007-06-29 Thread oryann9
You have to add UserModeTime and KernelModeTime then divide by 10,000,000. See: http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept05/hey0922.mspx use Win32::Process::Info; use Data::Dumper; my $pi = Win32::Process::Info->new (); my @process_information = $pi->GetProcInfo(3692);

Re: CPU/Memory usage of a process on Windows machine

2007-06-29 Thread oryann9
> #!c:/perl/bin/perl.exe > # This is a test scrip > use Win32::Process::Info; > use warnings; > use strict; > my $pi = Win32::Process::Info->new (); > my @process_information = $pi->GetProcInfo(4488); > ## 4488 is pid of a > particular process. > foreach $info (@process_information) { >

Re: [PERL] Net::SFTP functions

2007-06-27 Thread oryann9
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > You need to use: > > $ftp->get("/path/to/remote/file", > "/path/to/local/destination_file"); > > Octavian > Also you can use $remotedir = qq(/path/to/remoteserver/dir/); $sftp->cwd($remotedir) || die "CWD to folder outbound failed!:

Re: Uninstalling a PERL module

2007-06-22 Thread oryann9
--- a_arya2000 <[EMAIL PROTECTED]> wrote: > Hello, does anyone know what is the most effective > way > of uninstalling perl module? Thank you. > Why would you want to do such a thing? Just take the path to this module out of @INC by editing your .profile and or PERL5LIB variable, unless you thi

Re: Simple Encryption - what function/module could I use?

2007-06-21 Thread oryann9
ok must of missed it. sorry. Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz -- To unsubscribe, e

Re: Simple Encryption - what function/module could I use?

2007-06-21 Thread oryann9
So you are using the binary ^ to encrypt with XORED together bit by bit? Please explain? thank you. $/etc/skel $ perl -le 'print "hello" ^ "X";' 0=447 $ perl encrypt.plx file2 plaintext: hello encryptedtext: 0=447R decryptedtext: hello Also noticed I could use binary &

Re: Simple Encryption - what function/module could I use?

2007-06-20 Thread oryann9
> > > > > > #!/usr/bin/perl > > > > > > > > use strict; > > > > use warnings; > > > > > > > > my $plaintext = do { local $/ = undef; <> }; > > > > my $pad = "X" x length $plaintext; > > > > > > > > my $encryptedtext = $plaintext ^ $pad; > > > > my $decryptedtext = $encryptedtext ^ $pad; > >

Re: Simple Encryption - what function/module could I use?

2007-06-20 Thread oryann9
--- oryann9 <[EMAIL PROTECTED]> wrote: > > > > #!/usr/bin/perl > > > > > > use strict; > > > use warnings; > > > > > > my $plaintext = do { local $/ = undef; <> }; > > > my $pad = "X" x length $pl

Re: Simple Encryption - what function/module could I use?

2007-06-20 Thread oryann9
> > #!/usr/bin/perl > > > > use strict; > > use warnings; > > > > my $plaintext = do { local $/ = undef; <> }; > > my $pad = "X" x length $plaintext; > > > > my $encryptedtext = $plaintext ^ $pad; > > my $decryptedtext = $encryptedtext ^ $pad; > > print > "plaintext:\n$plaintext\n\nencrypted

Re: Getting a program pid

2007-06-13 Thread oryann9
> > #!/usr/bin/perl -w > > use strict; > > my $program = "vi"; > my $status = `/bin/ps cat | /bin/grep $program`; > > if ( length($status) > 0 ) { > print "$status"; #extract > pid from here > } > else { print "$program not running\n" }# start > program > > =

flock question

2007-06-11 Thread oryann9
In this code: BEGIN { use Fcntl ':flock'; open( DATA, qq(C\:\\temp\\file.txt) ) or die "file handle was not opened: $!"; for my $foo () { print $foo; } flock DATA, LOCK_EX | LOCK_NB or exit 0; } Is there anything more one could add to this statement from the Co

Re: encode UTF8 -> MIME

2007-05-31 Thread oryann9
> Oddly, there's a uri_unescape_utf8 but no > uri_unescape_utf8 provided > by URI::Escape. > > However combining URI::Escape::uri_unescape() and > Encode::decode_utf8() > in one statement is not overly taxing. > > use Encode; > use URI::Escape qw(uri_unescape); > my $e_accute = decode_utf8 uri_un

Re: regexp ...

2007-05-11 Thread oryann9
'msgagt=ESM_WMB_AIX,sec_id=Sec_id,severity=Low,node=test,msgnode=qwmbap01.cardinalhealth.net,utc={2007-04-26 18:01:59.472+00:00},om={UID=3a7affd6-f420-11db-80b1-,AlertCode=AEM001,AlertType=AEM-default,AppName=AEM-CommonService2,Message=5004:An error has been reported by the BIPXML4C com

Re: regexp ...

2007-05-11 Thread oryann9
> Since you haven't provided the original data, it's a > bit difficult to > give advice. There's nothing here, for instance, to > show what you hope > to gain by splitting the string into characters. It > looks to me like > you have CSV and want to split on the commas: Jay the original data I pos

Re: regexp ...

2007-05-11 Thread oryann9
> > > Now I am trying to break up string into > individual > > > chars, but this does not seem to work: > > snip > > > > The idiomatic way is > > > > for my $chr (split //, $str) { > > } > > Funny I had to explain split /|/, $str returning an > array of characters. > > -- > Ken Foskey > FOSS

Re: regexp ...

2007-05-10 Thread oryann9
> > Now I am trying to break up string into individual > > chars, but this does not seem to work: > snip > > The idiomatic way is > > for my $chr (split //, $str) { > } ok thanks for this code, but that produces the same output as the unpack. :) The original code (\w+\=\w+,) seems work but is g

Re: regexp ...

2007-05-10 Thread oryann9
> > The strings I need out of this are: > > msgagt=ESM_WMB_AIX > > sec_id=Sec_id > > severity=Low > > msgnode=qwmbap01.cardinalhealth.net > > utc={2007-04-26 18:01:59.472+00:00} > > om={ > > UID=3a7affd6-f420-11db-80b1- > > AlertCode=AEM001 > > AlertType=AEM-default > > AppN

regexp

2007-05-10 Thread oryann9
I have this block of text: Node: dudbqa02 Message group: MoM_OpC_ADM-m-s Application: OGTP Object:syslog Severity: Critical Text: WebSph ere Broker v6003[2998366]: (QWMB01.EG500)[8225]BIP2951I: Event generated by user code. Additional information : 'msgagt=ESM_WMB

Re: unit messages

2007-05-01 Thread oryann9
> > Why are you creating these regexes so far from > where > > they are used? > > If you are going to do this at least give them > > meaningful names. I dont have a good reason Chas other than I like the ability to easily change the variable in one spot in case of future use. If this is not a goo

Re: unit messages

2007-05-01 Thread oryann9
> #!/usr/bin/perl > > use strict; > use warnings; > > my @a = qw(abc def ghi); > > for my $s (@a) { > $s =~ /(b)|(e)|(h)/; > print "1 => [$1] 2 => [$2] 3 => [$3]\n"; > } > Thank you for the kind replies. I understand now and have modified the code to: use strict; use warnings

unit messages

2007-04-30 Thread oryann9
Please advise on the small amount of code b/c I am getting the message as below, but the code is working and output how I want it, just trying to rid of messages. thank you! Use of uninitialized value in concatenation (.) or string at JFS_version_parser.pl line 20, line 952 (#1) Use of uniniti

Re: Nested loop

2007-04-20 Thread oryann9
--- Chas Owens <[EMAIL PROTECTED]> wrote: > On 4/20/07, John W. Krahn <[EMAIL PROTECTED]> wrote: > snip > > You are omitting one critical argument. For > people who are stuck with older > > versions of Perl and in your grep() example above > the foreach expression > > creates its list in memory w

Re: Nested loop

2007-04-20 Thread oryann9
--- Chas Owens <[EMAIL PROTECTED]> wrote: > On 4/19/07, John W. Krahn <[EMAIL PROTECTED]> wrote: > > Chas Owens wrote: > > > Yes, foreach was aliased to for for backwards > compatibility, > > > > Huh? Do you have something to back up that claim? > > Well, perlsyn* says >The "foreach" key

Re: reqular expr for string manip.

2007-04-20 Thread oryann9
> "Mumia W." schreef: > > > my $lang = ($topdir =~ /([^\/]+)$/)[0]; > > ITYRMSL: > > my ($lang) = $topdir =~ m~([^/]+)$~; > > -- Dr Rudd, I have never seen the expression m~ or $~ Will you tell me what this is and what is says? thank you

Re: Where Clause Help.

2007-04-18 Thread oryann9
> > I am trying to select items from a table where the > miles field is not > null or blank and the below statement does not work. > Does anyone have > any suggestions? > @resultkeys = > ("Date","People","Miles","Savings"); > > $sql = "SELECT c.objectid,c.dateadded as >

Re: Bandwidth Generated

2007-04-13 Thread oryann9
> > It works fine with 5.8.8 on my Fedora Core 5: > > $ perl -e 'for ("","abc\n","def","hij\n"){print; > warn tell STDOUT,"\n"}' > 0 > abc > 4 > 7 > defhij > 11 > $ > Does not seem to be accurate on this platform??? $ uname -a CYGWIN_NT-5.1 dubmdsmith10 1.5.24(0.156/4/2) 2007-01-31 10:57 i686

Re: Text munging problem

2007-04-06 Thread oryann9
$field =~ s/\b(.)(.*?)\b/\u$1\L$2/g; $record .= "$field|"; ** Is this regex s/\b(.)(.*?)\b/ saying boundry between any character zero or more times in $1 up to everything else non-greedy end word boundry in $2 sort of confused since your end goal is to CAPS first letter i

Re: Using case in Perl

2007-04-04 Thread oryann9
--- > > Perl doesn't have the "switch" control statement. > But you can get it by looking at CPAN: > http://search.cpan.org/~rgarcia/Switch-2.13/Switch.pm > To share some information in the up-incoming Perl 5.10 there will be a replacement for the switch clause. The given-when is the Perl answe

Re: perl 5.10 questions

2007-04-04 Thread oryann9
> But this is all fairly complicated stuff and > probably a little advanced > for a beginners list. You might find more joy > asking on > comp.lang.perl.moderated, or perlmonks. > > -- > Paul Johnson - [EMAIL PROTECTED] yes but there are a lot of advanced members on the list. ok thanks for r

perl 5.10 questions

2007-04-03 Thread oryann9
In "The Perl Review" spring 07 page 10 it states: "With Perl 5.10 I can write my own lexical pragmas. In fact, feature was implemented this way. The %^H special variable lets me attach "references" to the optree, which I can then inspect with caller. Perl passes this information as a new item in t

Re: perldoc -q "How can I make my Perl program run faster?"

2007-03-23 Thread oryann9
--- Jay Savage <[EMAIL PROTECTED]> wrote: > On 3/22/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > > > This really isn't a Perl question, though. If > you > > > have questions about > > > dynamic vs. static linking, and why you might > w

Re: perldoc -q "How can I make my Perl program run faster?"

2007-03-22 Thread oryann9
> This really isn't a Perl question, though. If you > have questions about > dynamic vs. static linking, and why you might want > to do one or the > other, you should probably pick up a good book on C > and/or the C > compiler on your system. > > HTH, > > -- jay thank you for responding, howev

Re: perldoc -q "How can I make my Perl program run faster?"

2007-03-22 Thread oryann9
--- Chas Owens <[EMAIL PROTECTED]> wrote: > On 3/22/07, oryann9 <[EMAIL PROTECTED]> wrote: > snip > > Am I linked to libc.a? > snip > >libc=/usr/lib/libc.a, so=dll, useshrplib=true, > libperl=libperl.a > snip > > It looks like it. My perl says &

perldoc -q "How can I make my Perl program run faster?"

2007-03-22 Thread oryann9
On this FAQ I read: If you're currently linking your perl executable to a shared libc.so, you can often gain a 10-25% performance benefit by rebuilding it to link with a static libc.a instead. This will make a bigger perl exe-cutable, but your Perl programs (and programmers) may thank you for it.

Re: template toolkit

2007-03-20 Thread oryann9
> oryann9> All, > oryann9> Is the Perl template toolkit a popular tool > to use for > oryann9> mid tier to senior Perl developers? > > I'm about as senior as they get for Perl developers > {grin}, and it's clearly > my templating language of choice. &

template toolkit

2007-03-19 Thread oryann9
All, Is the Perl template toolkit a popular tool to use for mid tier to senior Perl developers? Reason I ask is because from the description it states "And because it has its own simple templating language, templates can be written and edited by people who don't know Perl." Among the many

cgi Calendar continued.

2007-03-09 Thread oryann9
My goal is to correlate the data in 2 arrays into a HoH or a HoA so that when I print this data in an HTML table so it comes out correctly. snippet... my (@weeks, @weeks1, @weeks_AoA,) = ((),(),()); ## Set up array with dates minus 15 days and plus 15 days from current date ## foreach $day ('

Re: confused about a regex

2007-03-08 Thread oryann9
Yes I understand now. For some reason I missed the missing quotes in the original post and the word token came to mind. $ perl -MO=Deparse foo.plx BEGIN { $^W = 1; } use diagnostics; sub abc { use warnings; use strict 'refs'; 'abc.'; } sub e { use warnings; use strict 'ref

Re: confused about a regex

2007-03-08 Thread oryann9
> $_=abc.e.i; > > This is short for: > > $_ = 'abc' . 'e' . 'i'; > > Which is the same as saying: > > $_ = 'abcei'; > Why is $_=abc.e.i short for $_ = 'abc' . 'e' . 'i'; Is it b/c each group of characters is a 'token' including the periods? abc => token . =>

Re: cgi calender

2007-03-02 Thread oryann9
> More than this I cannot offer. I don't know what > range of values your > $dayofweek variable holds so I can't even guess what > to code. > > Rob > No abuse was intended. Sorry. I like to send my thoughts on what to do for code to the list to see if I get any feedback regardless of whether th

Re: cgi calender

2007-03-02 Thread oryann9
g anyone off. I am a nice person who has a drive to master Perl, but at the same time I feel as if this list is against me b/c I do not write my questions in the most ideal way. derek (oryann9 => my all white cats name) :) _

Re: remove line if field one is duplicate

2007-03-01 Thread oryann9
--- Chris Charley <[EMAIL PROTECTED]> wrote: > > > This is creating a anonymous hash, correct? > > This is saying > print unless the first field has been seen before > > which is what he wants his code to do. > > $h is a good short notation - but using %seen > instead of %h may make it clearer

Re: remove line if field one is duplicate

2007-03-01 Thread oryann9
--- Chas Owens <[EMAIL PROTECTED]> wrote: > On 2/27/07, Keenan, Greg John (Greg)** CTR ** > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have to combine several Unix password files and > remove any duplicate > > accounts - putting this into LDAP. > > > > I have the following code that will remove

Re: cgi calender

2007-03-01 Thread oryann9
--- zentara <[EMAIL PROTECTED]> wrote: > On Wed, 28 Feb 2007 12:10:36 -0800 (PST), > [EMAIL PROTECTED] (oryann9) > wrote: > > >Will anyone offer some kind help? > > See: > http://perlmonks.org?node_id=599419 > > Or groups.google.com for "perl html c

Re: cgi calender

2007-02-28 Thread oryann9
--- oryann9 <[EMAIL PROTECTED]> wrote: > --- Tom Phoenix <[EMAIL PROTECTED]> wrote: > > > On 2/27/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > > > Problem: cgi calender daynames are not matching > up > > > with dates. For example: Today

Re: cgi calender

2007-02-28 Thread oryann9
--- Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 2/27/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > Problem: cgi calender daynames are not matching up > > with dates. For example: Todays date 02/27/2007 is > > being printed under Thursday instead of Tuesday.

Re: cgi calender

2007-02-27 Thread oryann9
--- oryann9 <[EMAIL PROTECTED]> wrote: > All, > > I am having an issue getting my cgi calender to > print > correctly. Any help or hints would be appreciated! > I was thinking of manipulating the @weeks_anonymous > array with select dayofweek(curdate()) rather th

cgi calender

2007-02-27 Thread oryann9
All, I am having an issue getting my cgi calender to print correctly. Any help or hints would be appreciated! I was thinking of manipulating the @weeks_anonymous array with select dayofweek(curdate()) rather than using hardcoed undef's Problem: cgi calender daynames are not matching up with date

cgi calander

2007-02-26 Thread oryann9
Any hints or pointers would be appreciated! thank you When the dates change my calendar gets thrown off. The daynames and dates are not matching up. I tested this by simply adding and subtracting 1 from the SQL call curdate() +1 or curdate() -1. Shouldn't I be able to manipulate the @weeks_anonymo

using ssmtp to send mail from Intel cygwin platform

2007-02-07 Thread oryann9
Hello...: ) I am having issues sending mail from within a perl script on an intel using the cygwin platform; the code is simply not sending email. CYGWIN_NT-5.1 laptop 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin snippet... qx(/usr/sbin/ssmtp $user < $log); system("/usr

Re: regexp... weird results

2007-02-02 Thread oryann9
Jay Savage <[EMAIL PROTECTED]> wrote:On 2/1/07, oryann9 wrote: > oryann9 wrote: Hello Perl list, > [snip] > > I was able to figure it out. The solution was /s. > my $regexp = qr/.*\x3a5101.*/s; > > However, when I put multiple port numbers in the regexp it does NOT w

Re: regexp... weird results

2007-02-01 Thread oryann9
oryann9 <[EMAIL PROTECTED]> wrote:Hello Perl list, I need to grab from an intel machine all lines with :5101 from netstat -a. If I dont group the regexp using parens then it prints all the needed lines. If I group the regexp using parens then it does not print all the needed lines. An

regexp... weird results

2007-02-01 Thread oryann9
Hello Perl list, I need to grab from an intel machine all lines with :5101 from netstat -a. If I dont group the regexp using parens then it prints all the needed lines. If I group the regexp using parens then it does not print all the needed lines. Any help and an explanation...I am c

Re: regexp

2007-01-31 Thread oryann9
"John W. Krahn" <[EMAIL PROTECTED]> wrote:oryann9 wrote: > In this regexp > > my $regexp = qr/(\d+\x3a1108 > |\w+\x3a1108{1,} ) /; > > vs. > > my $regexp1 = qr/(\d+\x3a1108 > |\w+\x3a1108){1,} /; > > does the {1,} construct outside the p

regexp

2007-01-31 Thread oryann9
In this regexp my $regexp = qr/(\d+\x3a1108 |\w+\x3a1108{1,} ) /; vs. my $regexp1 = qr/(\d+\x3a1108 |\w+\x3a1108){1,} /; does the {1,} construct outside the parens () mean the entire string 1 or more times and within the parens mean only the la

port blocking on a wintel box

2007-01-26 Thread oryann9
Is there a way to block certain ports using Perl? If so please send me snippet sample code and or recommend module name to get me started. thank you - Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight

HoH and HoHoH

2007-01-12 Thread oryann9
HoH 'jblow' => { 'uid' => '2195', 'gecos' => 'Joe Blow,,,', 'gid' => '20' }, snippet. ( $name, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' ); $hash1{$name} -> {'uid'

Re: remove duplicate lines

2007-01-11 Thread oryann9
"Dr.Ruud" <[EMAIL PROTECTED]> wrote:oryann9 schreef: > "Dr.Ruud" wrote: beast schreef: >> beast: >>> a 100 >>> a 102 >>> c 100 >>> a 102 >>> b 111 >>> c 100 >>> c 102 >>> c

HoH and HoHoH

2007-01-11 Thread oryann9
HoH 'jblow' => { 'uid' => '2195', 'gecos' => 'Joe Blow,,,', 'gid' => '20' }, snippet. ( $name, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' ); $hash1{$name} -> {'uid'}

HoH and HoHoH

2007-01-11 Thread oryann9
HoH 'jblow' => { 'uid' => '2195', 'gecos' => 'Joe Blow,,,', 'gid' => '20' }, snippet. ( $name, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' ); $hash1{$name} -> {'uid'}

  1   2   >