Thank you! I should have searched cpan.
Jim.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Greetings!
basically I need a perl equivalent in bash that does which and gives me the
binary path. I need this because I run my script in different systems I want
the binary automatically adjusted.
Thanks!
Jim.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands
pls ignore this post, it has nothing to do with perl itself. the
sender is basically overwhelming the receiver que and receiver
couldn't handle fast enough..
Thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.
Hello!
I have the following code which is giving me trouble, basically I was
tesing the Tibco::Rv module this was just a test program. what it does
is it creates a listener and calls a simple callback when the listener
sees a message. I ran this script but the memory use gets larger and
larger as
On May 15, 1:28 am, u...@stemsystems.com ("Uri Guttman") wrote:
> hi all,
>
> As with other releases of File::Slurp I think this list should be told
> about it since this module is so easy to use and makes your Perl much
> simpler and also faster.
>
> uri
>
> Have you ever wanted to use perl -pi in
On May 15, 7:13 pm, u...@stemsystems.com ("Uri Guttman") wrote:
> >>>>> "PJ" == Paul Johnson writes:
>
> PJ> On Sun, May 15, 2011 at 01:31:47PM -0400, Jim Green wrote:
> >> this is very nice, don't need to call perl in perl an
On 18 May 2011 20:39, Shawn H Corey wrote:
> On 11-05-18 08:36 PM, Jim Green wrote:
>>
>> is this the same for other language like c++ or java?
>
> For all processes. That's why deamons periodically respawn; to clean up
> messes like this.
Thank you! I just wish thi
On 18 May 2011 20:30, Paul Johnson wrote:
> On Wed, May 18, 2011 at 05:16:23PM -0700, Jim Green wrote:
>> Hello List!
>> I have a quick question about memory release in perl:
>>
>> {
>> my @array;
>>
>> foreach my $n (1..1e7 ) {
>&
Hello List!
I have a quick question about memory release in perl:
{
my @array;
foreach my $n (1..1e7 ) {
push @array, $n;
print "$n\n";
}
}
print "sleeping\n";
sleep 600;
after the code block, I epxect memory usage to drop to almost zero
because @array went out of sc
On 15 May 2011 01:28, Uri Guttman wrote:
>
> hi all,
>
> As with other releases of File::Slurp I think this list should be told
> about it since this module is so easy to use and makes your Perl much
> simpler and also faster.
>
> uri
>
> Have you ever wanted to use perl -pi inside perl? did you h
Thanks Brandon, YAML should get some functions to manipulate it..
On Thu, Mar 3, 2011 at 7:56 PM, Brandon McCaig wrote:
> On Thu, Mar 3, 2011 at 6:39 PM, Brandon McCaig wrote:
>> I don't know if I'd call it easier. I'm not personally familiar with
>> YAML so I only bothered to parse the example
On Thu, Mar 3, 2011 at 6:31 PM, Jim Gibson wrote:
> On 3/3/11 Thu Mar 3, 2011 3:11 PM, "Jim Green"
> scribbled:
>
>> On Mar 3, 5:44 pm, shawnhco...@gmail.com (Shawn H Corey) wrote:
>>> On 11-03-03 05:40 PM, Jim Green wrote:
>>>
>>>> But
On Mar 3, 5:44 pm, shawnhco...@gmail.com (Shawn H Corey) wrote:
> On 11-03-03 05:40 PM, Jim Green wrote:
>
> > But is there a easier way of
> > doing this I might not be aware of?
>
> Given your brief description, no. The problem is that you can't output
> the firs
Hello:
I have a yaml file
key1:
a: value1
b: value1
key2:
a: value2
b: value2
I want it converted to
a:
key1:value1
key2:value2
b:
key1:value1
key2:value2
I could use YAML module to load the first yaml file to a hash and
manually populate another hash and dump. But is th
Hello:
I have some static data I want to wrap in a Data.pm, what is the best
way of doing this.
package data;
use strict;
use warnings;
my $data=1;
1;
I tried
use data;
print $data; but it doesn't work, also I tried print data::$data and
still doesn't work.
Thanks for helping!
Jim
--
To unsu
Hello
I searched cpan and was overwhelmed by the number of modules
available.
I want a config module that can do updates well, preserving formats of
original file, preserving blank lines, comments, etc. which one should
I use..?
Config::General, Config::Simple, Config::Inifiles, just to name a
fe
Hello,
I wrote simple cgi scripts before but want to go further, I want to
learn a little bit systematic web programming, I found catalyst and
ORMs, do you guys think with those I don't need to learn javascript,
ajax etc?
Thanks!
Jim
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For
Hello:
I am confronted with a task of creating a package to manipulate a set
of configuration files.
for example I need to setup up a server and need to change lots of
configuration files and create necessary sections, change values in
the file etc. Also sometimes I modify the server set up and n
this will work, Thank you!
On 30 January 2011 22:00, wrote:
> Jim Green writes:
>>
>> Hello,
>> I usually use my ($arg1, $arg2) = @_;
>> to get the arguments parsed to a subroutine.
>> I want this to be smarter. Sometimes I want to pass $start, $end to
>
Hello,
I usually use my ($arg1, $arg2) = @_;
to get the arguments parsed to a subroutine.
I want this to be smarter. Sometimes I want to pass $start, $end to
the sub, sometimes I want to pass $start, $count to the sub.
but in this case my ($arg1, $arg2) = @_; will get confused, it
doesn't know i
Hello Perl community,
here is a question I encountered dbi and till now I use brute force to
solve it, but I figured I may see better way to do it here.
in orable sqlplus If I do
select * from table, it will print out the results nicely, all
aligned.
in dbi what I do now
my $body = sprintf("mark
Hi,
I used to use find, a for loop and awk to extract data from a list of
files returned by find.
Now I want to use file::find and perl to this.
use vars qw/*name *dir *prune/;
*name = *File::Find::name;
*dir= *File::Find::dir;
*prune = *File::Find::prune;
my $directories_to_seac
i have a question for the following perl code, by changing the value
in %h3, the script also changes the value for %h4, I vaguely
understand it is because %h3's key is reference to %h2, %h2's key is
reference to %h1,
so by changing value in %h3, the script also changes the value for %h4,
I was wo
Thank you all! I figured it out!
Jim
2010/1/18 Alexander Koenig :
> Hi Jim,
>
> Jim Green wrote on 01/17/2010 05:25 PM:
>> my $name = "/usr/local/bin/perl";
>> (my $basename = $name) =~ s#.*/##; # Oops!
>>
>> after substitution $basename is supposed t
Thank you all! I figured it out!
JIm
2010/1/18 Alexander Koenig :
> Hi Jim,
>
> Jim Green wrote on 01/17/2010 05:25 PM:
>> my $name = "/usr/local/bin/perl";
>> (my $basename = $name) =~ s#.*/##; # Oops!
>>
>> after substitution $basename is supposed t
my $name = "/usr/local/bin/perl";
(my $basename = $name) =~ s#.*/##; # Oops!
after substitution $basename is supposed to be
perl
but why it is not /local/bin/perl? will .*/ matches longest possible string?
Thank you list!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional
Hi,
I have a text file with lines like this
· Experience in C/C++ realtime system programming
· Experience in ACE, FIX
Could anybody tell me which regex to use to get rid of the dot and the
leading spaces before each Line?
Thanks for any help!
Jim
--
To unsubscribe, e-ma
2009/12/22 Jim Gibson :
> s/^\.\s*//;
Thanks Jim, I will figure out as I read "learning perl".
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>
--
To unsubscribe, e-mail: beginners-unsubscr
2009/12/21 Uri Guttman :
>>>>>> "JG" == Jim Green writes:
>
> JG> I have a text file with lines like this
>
>
> JG> · Experience in C/C++ realtime system programming
>
> JG> · Experience in ACE, FIX
>
>
> JG&
Hi,
I have a text file with lines like this
· Experience in C/C++ realtime system programming
· Experience in ACE, FIX
Could anybody tell me which regex to use to get rid of the dot and the
leading spaces before each Line?
Thanks for any help!
Jim
--
To unsubscribe, e-mail
30 matches
Mail list logo