... Hans> Why so much coding when it could be achieved much easier, having somewhere Hans> deeper in the perl machine code a stop switch like "stay" in the ...
Hi Randal an Jon, I respectfully insist: I still DREAM of a switch in: find(sub {$name{$File::Find::name} = -f;}, @ARGV); For now I have a construction with...
Note: I'm new to using the mailing list - my apologies if I'm doing anything incorrectly. I'm having a problem with parsing some CSV data. I'm using ...
26682
Jon Reynolds
jonr@...
Jul 21, 2009 7:26 am
... You never fail to let me know just how far away I am from being a perl guru or a beginner, for that matter Randall. But I always get hopeful the more your...
... The *perlrun *document states that the numeric value of the *-0*command-line feature is an *octal* value. (You can use a hexadecimal value by using...
... hwitche> I would have only one wish left for the perl gurus: to implement a hwitche> tiny "stop" tag into the line "find(sub {$name{$File: :Find::name} = ...
Thank you Vidhut for your help, I would have only one wish left for the perl gurus: to implement a tiny "stop" tag into the line "find(sub {$name{$File:...
26678
Amit Saxena
learn.tech123@...
Jul 16, 2009 2:40 pm
Hi Jim, Thanks for the response. I was doing the approach which you have mentioned as the fastest one. I was using nested data structures for the same. The...
26677
Amit Saxena
learn.tech123@...
Jul 16, 2009 9:13 am
Hi all, I need help regarding the approach to find out matched and unmatched entries between two files using perl. As the number of lines in the files would be...
there is option called $File::Find::prune which if you set in callback function 'wanted39; , by using this option you can block the pruned directory . you can...
Hi all, How can I stop my find script to go into sub directories and stay in specific directory = "dir2" only? $directory="..\/dir192;/dir2"; @ARGV =...
26674
Kelly Jones
kelly.terry.jones@...
Jul 15, 2009 1:33 pm
According to "man perlrun", the "-0777" option sets $/ to 0777 and slurps files whole. This works fine. However, when I did 'local $/="0777"' in a script, it...
26673
Arun Pandey
arunp@...
Jul 15, 2009 8:38 am
Perl function caller should help you out caller EXPR caller Returns the context of the current subroutine call. In scalar context, returns the caller's ...
Hi, I wrote following program to send an email to my email id, looks like it is running. But when I checked my mailbox, does not find any email. Can anybody...
... In that case, make sure you use String-ShellQuote: http://search.cpan.org/dist/String-ShellQuote/ Alternatively use open '-|', @list which is only...
When executing this command, don't forget to redirect the STDERR to STDIO, else you won't be able to figure out the reason why command has failed, so i will...
I TRIED IT THIS WAY.. INCLUDING WITH THE BACK LASHES. But I still get nothing.. And I show nothing ran in task manager.. open my $command, "e:\BMC...
26662
Jeff Soules
soules@...
Jun 24, 2009 4:58 pm
Maybe the backtick operator ` `? (Backtick on my keyboard is the tilde key ~ without shift, but it might be different on your keyboard). ... You'd do my...
26661
Dan Stephenson
ispyhumanfly@...
Jun 24, 2009 1:55 am
... Try opening the the command with a piped file handle, like so... the below example will execute a given command and print the output to the screen (you...
Hi, I am writing a perl program to call/ execute another windows program Using the system command. I am trying to get/print the results to see if the command...
Hope this helps Output: Apples count is: 3 Oranges count is: 3 Pears count is: 3 Src: #!/usr/bin/perl use strict; use warnings; my $count = 0; my...
26658
Jeff Soules
soules@...
Jun 18, 2009 12:22 pm
In a Unix environment, the easiest way to sort the file would be to use the sort utility on the file. But you said you're running in Windows. So, since your...
... Kevin> I have it on order and reading it online now.. I hope by "reading it online" you mean you have a safari.oreilly.com account (or access to it through...
Ok. Im stuck again. I need to sort this input file below before my code.. Cant someone help me with this?? ... <mailto:perl-beginner%40yahoogroups.com> ...
Thanks. I have it on order and reading it online now.. From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of Jeff Soules ...
26654
Jeff Soules
soules@...
Jun 17, 2009 8:54 pm
... If you're learning from books, I cannot recommend _Learning_Perl_ highly enough. It's got a very intelligent presentation order, tons of useful example...
Thanks. I am reading on hashes now and practicing on how to use them. I have not taken any perl classes.. I just started reading the books. From:...
26652
Jeff Soules
soules@...
Jun 17, 2009 8:46 pm
You've had prior experience with other programming languages, right? Using substr() this way is a very C or Java way of doing things. Read up on hashes...