Search the web
Sign In
New User? Sign Up
perl-beginner · Perl Beginners Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 19521 - 19550 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
19521
This code: while (<DFH>) { # do stuff... # indicate progress (BIG file = 1_253_684 lines...) (($. % 100_000) == 0) { warn "Line $.\n"; } } Yields: Line 0 Line...
Allan Dystrup
allan_dystrup
Offline Send Email
Sep 1, 2004
1:46 pm
19522
... <allan_dystrup@y...> wrote: This code - SHOULD HAVE BEEN - : ______________ while (<DFH>) { # do stuff... # indicate progress (BIG file = 1_253_684...
Allan Dystrup
allan_dystrup
Offline Send Email
Sep 1, 2004
1:51 pm
19523
right.. i knew that (about the comma) .. not sure why i put it there!LOL Lou ... From: Charles K. Clarkson To: perl-beginner@yahoogroups.com Sent: Tuesday,...
Luinrandir Hernsen
Luinrandir
Offline Send Email
Sep 1, 2004
1:52 pm
19524
The piece of code I posted is to see if the ruin is "owned" or not. then it will asign the new owner to the ruin and take the coins from him. I have a var...
Luinrandir Hernsen
Luinrandir
Offline Send Email
Sep 1, 2004
2:23 pm
19525
... #!/usr/bin/perl -w use strict; open F, '< lotsolines' or die "couldn't read: $!\n"; while (<F>) { (($. % 100_000) == 0) and warn "at line $.\n"; } close F;...
Dave Gray
yargevad
Offline Send Email
Sep 1, 2004
3:08 pm
19526
... running ... or ... Here's the full Monthy for the block in question: ___________________________________________________________________ while (<DFH>) { #...
Allan Dystrup
allan_dystrup
Offline Send Email
Sep 1, 2004
3:30 pm
19527
Revised code _________________________________________________ while (<DFH>) { !($. % 100_000) and warn "Line $.\n"; next if (! m/^\d{2}-\d-\d{4}/ ); # etc... ...
Allan Dystrup
allan_dystrup
Offline Send Email
Sep 1, 2004
3:51 pm
19528
... That 'next' line looks suspicious to me... how about: print("skipping $.\n"), next if (! m/^\d{2}-\d-\d{4}/ ); to see how many lines it skips? Or even: ...
Dave Gray
yargevad
Offline Send Email
Sep 1, 2004
4:11 pm
19529
... lines ... [$C] ... ================================================================== Yup, you're quite right here Dave... that next line was the villain. ...
Allan Dystrup
allan_dystrup
Offline Send Email
Sep 1, 2004
6:21 pm
19530
... So it is incomplete? That explains a lot. I had assumed you were sending working code from the game. ... Is this a new feature of the game? If it is, is...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Sep 1, 2004
6:26 pm
19531
all 8000 lines? this is just the part i am working on now... what I need to do is figure out how to read and write hashes. Lou ... From: Charles K. Clarkson ...
Luinrandir Hernsen
Luinrandir
Offline Send Email
Sep 1, 2004
9:13 pm
19532
Luinrandir Hernsen <Luinrandir@...> wrote: Top and bottom posting. You're killing me here ... [best spoken with a Brooklyn accent.] ... You should...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Sep 1, 2004
11:30 pm
19533
I need some code to check whether a scalar is (or contains) a certain word and I can't seem to figure out how to get it to ignore case...
calcfreak2003
Offline Send Email
Sep 2, 2004
6:36 pm
19534
Lets say we want to see if the word 'input' is in the string $input: my $input = 'This is the INPUT string'; print("Yes!!!\n") if $input =~ /input/i; You are...
Erik Tank
ert1994
Offline Send Email
Sep 2, 2004
6:40 pm
19535
... The matching operations can have various modifiers some of which affect the interpretation of the regular expression inside: i Do case-insensitive pattern...
J.E. Cripps
cycmn@...
Send Email
Sep 2, 2004
6:42 pm
19536
... If you want to see if it *is* a certain word, case-insensitive, do: if (lc($word) eq "jeff") { ... } or if (uc($word) eq "JEFF") { ... } If you want to see...
Jeff 'japhy' Pinyan
evilffej
Offline Send Email
Sep 2, 2004
7:20 pm
19537
Greetings Perl gurus, How do I correctly get to the array that is attached to my hash? I'm reading a list of keywords from a file. I'm going to search another...
greg.hering@...
glhering
Offline Send Email
Sep 2, 2004
8:05 pm
19538
To the group: I have just started to use perl/Tk and loving it. I want to launch the script and have the shell/cmd window results (std out) display in a widget...
Douglas Wade
douglaspaulwade
Offline Send Email
Sep 2, 2004
8:36 pm
19539
... Arrays are not "attached" to hashes. I know this seems nitpicky, but your conceptualization of a hash of arrays is important. A hash of arrays is a hash...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Sep 3, 2004
12:28 am
19540
I really hate to ask such a totally off-topic question, but I'm Googled to death, and I can't find the answer I'm looking for. So I thought a direct query of a...
Paul Archer
tigger@...
Send Email
Sep 3, 2004
4:14 am
19541
... From: Paul Archer <perl-beginner@yahoogroups.com> Date: Thursday, September 02, 2004 at 09:14PM PDT PA> I really hate to ask such a totally off-topic...
Mike Dillinger
mikedpan
Offline Send Email
Sep 3, 2004
4:35 am
19542
... certain word ... Since no one else has posted Benchmark results... ========= CODE: #!/usr/bin/perl -w use Benchmark qw( cmpthese ); my $string = "This long...
daymobrew@...
daymobrew
Offline Send Email
Sep 3, 2004
8:53 am
19543
<snip> ... Sorry. I was being descriptive (guess I should have used foo and bar). It would have been foreach my $notPattern ( $hash{$searchPattern} ) {} The...
greg.hering@...
glhering
Offline Send Email
Sep 3, 2004
3:31 pm
19544
... Regex would be better solution if you want to catch "Jeff" or "jEFF" too. Sam [Non-text portions of this message have been removed]...
Sam Munzani
smunzani
Offline Send Email
Sep 3, 2004
3:39 pm
19545
... You're misunderstanding Jeff's solution. He normalizes the input by converting "Jeff" or "jEFF" to all upper- or lower-case before comparing it to "jeff"...
Dave Gray
yargevad
Offline Send Email
Sep 3, 2004
4:09 pm
19546
... You can. ... This sets $test[0] to the reference to the array at $hash{$searchPattern}. my @test = @{ $hash{$searchPattern} }; This sets @test to the array...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Sep 3, 2004
8:25 pm
19547
I have a bunch of files in the 23-30GB range that I need to fit as efficiently as possible onto 250GB hard drives. I have enough files (several terabytes...
Paul Archer
tigger@...
Send Email
Sep 5, 2004
1:35 am
19548
... This is an NP-complete problem known as "the knapsack problem", or "bin packing". It's no easy task. -- Jeff "japhy" Pinyan % How can we ever be...
Jeff 'japhy' Pinyan
evilffej
Offline Send Email
Sep 5, 2004
1:14 pm
19549
... Well, I feel better that I couldn't come up with anything, at least! But it is an easy task (in a Perl sort of way): someone has written ...
Paul Archer
tigger@...
Send Email
Sep 5, 2004
6:02 pm
19550
Hi, I have to write perl scripts that automate the build process. We support multiple platforms - MSDEV, WinCE, ARM, etc and want to write a Perl script that...
ruchika_27
Offline Send Email
Sep 7, 2004
10:14 pm
Messages 19521 - 19550 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help