Hello
I am not sure,
what does this mean? not changing the line length?
but in most case I need to change the length of a line.
Thanks again.
Tom
> That sounds positive. You should be able to avoid most of the overhead of
> writing the file. The general idea i
> Do you have the option to "seek" to the correct place in the file to make
> your changes? For example, perhaps:
>
> - Your changes are few compared to writing out the whole file
> - Your changes do not change the size of the file (or you can pad line-end
> with spaces)
>
1. each time just ch
Hello
I have a big file after making changes in ram I need to write it back to
disk.
I know for text file store it's written line by line.
But is there any better storage type for high performance read/writing?
maybe binary?
Thank you.
--
Sent from https://dkinbox.com/
--
To unsubscribe,
Hello list,
How can I sync json object to disk? so that other processes (or next
startup) can use this json.
Thanks.
--
sent from https://dkinbox.com/
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Thanks Pritish/jing!
From: Pritish Pattanaik [mailto:pattanaikprit...@gmail.com]
Sent: Monday, July 15, 2013 4:47 PM
To: Tom, Jentil Kuriakose; beginners@perl.org
Subject: Re: Excel Sheet Gen Code gives error
Hello Jentil,
Have you installed SpreadSheet::WriteExcel module ? ,
if no => t
Hi,
I have written simple EXCEL sheet gen PEARL code:
#!/usr/bin/perl
use strict;
use Spreadsheet::WriteExcel;
my $workbook = Spreadsheet::WriteExcel->new("simple.xls");
my $SUMMARY = $workbook->add_worksheet("SUMMARY");
$SUMMARY->write(0, 0,
eWVYhen0GBqknrx9c=
> Received: by 10.151.133.4 with SMTP id k4mr1392600ybn.159.1281676490585;
> Thu, 12 Aug 2010 22:14:50 -0700 (PDT)
> Return-Path:
> Received: from tosh2.localnet (70-6-161-53.pools.spcsdns.net [70.6.161.53])
> by mx.google.com with ESMTPS id
> p8sm24302
is better to merge the top level/hash array and have the
previous value over written. Then new values are appended.
For those interested the solution was very easy:
CODE
my %merged = {};
sub merge {
while (my $ref = shift)
{
my $k;
my $v;
# print $ref;
On Fri, May 07, 2010 at 12:44:01PM -0400, Bob McConnell wrote:
> From: Tom
>
> > I'm having trouble merging YAML streams.
> >
> > Basic premise is that I load multiple YAML files and I want to combine
> > the result. There may be common elements within subsequ
could merge them?
Cheers,
Tom
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Mon, Nov 9, 2009 at 8:30 PM, tom smith wrote:
>
> On Mon, Nov 9, 2009 at 10:56 AM, Jim Gibson wrote:
>
>> However, here is a shortened form using regular expression:
>>
>> my @output = $line =~ m{ \G (..) .. }gx;
>>
>> Verify how either of these wor
On Mon, Nov 9, 2009 at 10:56 AM, Jim Gibson wrote:
> However, here is a shortened form using regular expression:
>
> my @output = $line =~ m{ \G (..) .. }gx;
>
> Verify how either of these works when you do not have a multiple of 2
> characters in your input.
>
>
It has other problems too:
use
On Sun, Nov 8, 2009 at 12:39 AM, tom smith wrote:
>
> On Sat, Nov 7, 2009 at 7:57 AM, Shawn H Corey wrote:
>
>> tom smith wrote:
>> > I actually read something that said not to install Bundle::CPAN. Then
>> > sometime later I tried to install my first modu
On Sat, Nov 7, 2009 at 7:57 AM, Shawn H Corey wrote:
> tom smith wrote:
> > I actually read something that said not to install Bundle::CPAN. Then
> > sometime later I tried to install my first module, and in the fog of
> > trying everything possible to get cpan to insta
On Sat, Nov 7, 2009 at 6:27 AM, Shawn H Corey wrote:
> tom smith wrote:
> > On Fri, Nov 6, 2009 at 9:34 AM, Shawn H Corey > <mailto:shawnhco...@gmail.com>> wrote:
> > I think the OP is talking about the new modules that don't always
> play
> >
On Sat, Nov 7, 2009 at 2:45 AM, Ramesh, Marimuthu wrote:
>
>
> Hi,
>
>
>
> I have some 3000 sgml files, where I need to change the tag case from
> upper case to lower case.
>
>
>
> Example: Change This is an image to id="IMG1">This is an image.
>
>
>
> Note that the tag name and the attribute nam
On Fri, Nov 6, 2009 at 6:48 PM, John W. Krahn wrote:
> tom smith wrote:
>
>> On Mon, Nov 2, 2009 at 5:10 AM, John W. Krahn wrote:
>>
>> Philip Potter wrote:
>>>
>>> 2009/11/2 Thomas Bätzler :
>>>>
>>>> while( my $line = <
Hi,
Is there an easy way to wipe cpan off my computer? I would like to try a
fresh install to see if that cures all the problems I've had with cpan. So
far I can't install any modules with cpan. The latest errors are:
$ sudo perl -MCPAN -e shell
Password:
cpan shell -- CPAN
On Fri, Nov 6, 2009 at 2:04 AM, tom smith wrote:
>
>
> On Fri, Nov 6, 2009 at 12:15 AM, John W. Krahn wrote:
>
>> Michael Alipio wrote:
>>
>>> Hi,
>>>
>>
>> Hello,
>>
>>
>> if I have a script that accepts any combination
On Fri, Nov 6, 2009 at 12:15 AM, John W. Krahn wrote:
> Michael Alipio wrote:
>
>> Hi,
>>
>
> Hello,
>
>
> if I have a script that accepts any combination of the 5 or maybe even
>> more options, say, option1, option2, option3...
>>
>>
>> Now, after collecting the options, for each option, there
On Tue, Nov 3, 2009 at 12:51 PM, Bob goolsby wrote:
> Um -- this one got through. What kind of error message did you
> receive from one of the posts that didn't go through?
>
>
> B
>
> On Mon, Nov 2, 2009 at 9:40 PM, Charles DeRykus wrote:
> > Hello,
> >
> > I subscribed to perl.beginners via G
On Tue, Nov 3, 2009 at 4:33 PM, tom smith wrote:
> Thanks for the tips! More comments below.
> I saw it written the other way somewhere, and I thought it looked cleaner.
> I'll do it your way from now on.
>
>
>>
>> if ($line =~ /\((.*?)\)/) {
&g
On Mon, Nov 2, 2009 at 3:47 PM, Jeremiah Foster wrote:
>
> On Nov 2, 2009, at 20:38, tom smith wrote:
>
> On Mon, Nov 2, 2009 at 8:02 AM, Peter Scott wrote:
>>
>> On Mon, 02 Nov 2009 04:25:18 -0700, Tom Smith wrote:
>>>
>>> I believe that your HTML::P
Thanks for the tips! More comments below.
On Tue, Nov 3, 2009 at 4:10 AM, John W. Krahn wrote:
> tom smith wrote:
>
>> On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote:
>>
>> i've got problem when trying to perform a substitution.
>>>
>>&g
On Tue, Nov 3, 2009 at 12:11 AM, Majian wrote:
> Hi ,all :
>
> I want to know if there is a way in which I can randomnize(?) the content
> in
> an array.
>
> In this example :
>
> my @array = ('uriel', 'daniel', 'joel', 'samuel');
>
> Now what I want is create a process so every time I print the
On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote:
> hi folks,
> i've got problem when trying to perform a substitution.
>
> the text file i want to process is like this:
> ...
> XX {
> ABDADADGA
> afj*DHFHH
> } (a123)
> XXDFAAF {
> af2hwefh
> fauufui
> } (b332)
> ...
>
> i want to match the
On Mon, Nov 2, 2009 at 10:36 AM, Telemachus wrote:
> On Mon Nov 02 2009 @ 9:33, Parag Kalra wrote:
> > Hey Folks,
> >
> > This thread was about book - 'Learning Perl Student Workbook' and not the
> > book - 'Learning Perl'
> >
> > So is there a way we can buy genuine/official/legal ebook version
On Mon, Nov 2, 2009 at 12:35 PM, Paul Johnson wrote:
> On Mon, Nov 02, 2009 at 10:59:09AM -0500, Uri Guttman wrote:
> > >>>>> "ts" == tom smith writes:
> >
> > ts> Hi,
> > ts> Nowhere in the FAQ does it list the address to which you
On Mon, Nov 2, 2009 at 7:54 AM, Brent Clark wrote:
> Hiya
>
> I was hoping that someone would be kind to help me.
>
> I have a string like so :
>
> Haresources : 10.203.4.5, Interfaces : 10.203.4.5 10.203.4.7
>
> Im trying to get the ip's after Interfaces into an array, but for the likes
> of me,
On Mon, Nov 2, 2009 at 8:02 AM, Peter Scott wrote:
> On Mon, 02 Nov 2009 04:25:18 -0700, Tom Smith wrote:
> > base/message-charset.t 1/21 Can't locate
> > auto/HTML/Parser/utf8_mode.alin @INC (@INC contains: ../blib/lib
> > ../blib/arch ../.
> > /System/
On Mon, Nov 2, 2009 at 5:36 AM, Shameem Ahamed wrote:
>
> I think, it is installed successfully.
>
> Please run the below script to make sure that it is installed.
>
> use LWP::Simple;
>
> print "LWP/Simple.pm is installed in $INC{'LWP/Simple.pm'} \n";
>
$ perl --version
This is perl, v5.8.6 bu
On Mon, Nov 2, 2009 at 3:45 AM, Shameem Ahamed wrote:
> Tom,
>
> The make test it self returned error.
>
> So the problem is not with the cpan. Please check you have all the
> dependencies met. You can paste the make test results here. It will show the
> exact dependency err
On Mon, Nov 2, 2009 at 3:45 AM, Shameem Ahamed wrote:
> Tom,
>
> The make test it self returned error.
>
> So the problem is not with the cpan. Please check you have all the
> dependencies met. You can paste the make test results here. It will show the
> exact dependency err
1) I did:
$ sudo cpan
which asked me a lot of questions. I accepted the defaults.
2) Then as described here:
http://sial.org/howto/perl/life-with-cpan/macosx/
I did:
cpan> o conf makepl_arg "INSTALLBIN=/usr/local/bin
INSTALLSCRIPT=/usr/local/bin"
cpan> o conf commit
3) Then I did:
cpan>
Hi,
Nowhere in the FAQ does it list the address to which you can send your
beginning programming questions. The FAQ lists the address for subscribing:
beginners-subscr...@perl.org
But the FAQ doesn't list the email address to which you can send your
questions. For experienced list readers, it
ted output to a file from 2 terminals. There
> are lot of differences.
PERL5LIB, perhaps? You can use that environment variable to try out a
module without installing it "for real".
Another one to check is PATH; you could be using a different perl
binary without realizing it.
Hope th
I thought I had a feeling of déjà vu.
Tom
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
sorting to the RAW packet format.
As always any help is greatly appreciated.
Thanks
Tom
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
}
I'm basically working on getting the regex, then I'm going to
incorporate it into a program to pull out the TAP0SMITHJ stuff and put
it in another file.
Thanks,
Tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkiXdHQACgkQZWzkfeDiTw5hZgCdFOWLfu6eQAGsXU
shell like us old timers used to
do. Somebody around here probably still remembers how to run a
Makefile.PL from the command line Or you can type "perldoc
perlmodinstall" at the command line and read about it.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscrib
On Wed, Mar 26, 2008 at 11:08 AM, <[EMAIL PROTECTED]> wrote:
> How do I mod the code to function as is with two args (perlscr
> list1.txt list2.txt)
> or accept stdin as data_file when only one arg is given? (cat
> list1.txt | perlscr list2.txt)
First off, I must not fail to induct you into
print $item;
print while ;
last DATA_LINE;
}
}
# the inner loop has now updated $current_filter
print $item unless $item eq $current_filter;
}
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Good thing you didn't say anything
important. Except
> Subject: Re: Sum not producing zero
Oh, right. Hey, if using this subroutine is the "solution", does that
mean that you're adding up your financial numbers with accumulating
round-off error and then using this code&
compilation errors.\n};
You can optimize your code for many things; for speed, for code size,
for understandability. But making it work right in the first place is
more important than any of those other things.
ObPerl:
my %tenjqk = map +($_,1), qw{10 J Q K};
print "gotcha\n"
s of Perl. If that's not in
Sys::Mmap, it might be in PerlIO, or elsewhere.
http://search.cpan.org/~rgarcia/perl-5.10.0/lib/PerlIO.pm
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Mon, Mar 10, 2008 at 12:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> In what way is opening a file from a browser a CGI problem?
Maybe you missed where the OP said "I am developing a help viewer app
with CGI pm."
Cheers!
--Tom Phoenix
Stonehenge Perl Training
ith Perl, you should be asking your
questions about that in the beginners-CGI forum.
http://learn.perl.org/faq/beginners-cgi.html
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
onvenient ways to work with most data.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
vides that
functionality. Most importantly, if you're doing CGI programming with
Perl, you should be asking your questions about that in the
beginners-CGI forum.
http://learn.perl.org/faq/beginners-cgi.html
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mai
ep
through a program and see what's really happening to its data.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Sat, Mar 1, 2008 at 7:09 AM, MK <[EMAIL PROTECTED]> wrote:
> -> Because Tom replied to both you and the list.
>
> Maybe so, but get this: I definitely have two identical messages
> addressed to me (none to the list, which makes it stranger)
Here's another pair fo
# gets empty list
What do you do with return that "gives you a zero"?
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
").
What does "the return value is limited" mean? Can you give a concrete
example of what you're talking about?
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
ng below an
example program that uses Term::ReadKey. The program isn't quite
correct, but I hope trying your keystrokes while it's running will
help you to get to the next step. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
#!/usr/bin/perl
use strict;
use warnings;
use Term::
ead-multi/auto/GD/GD.so:
> undefined symbol: gdImageGifAnimAddPtr at
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
It looks like your GD module itself is broken. You should go back and
re-install it, being certain that the new build passes all tests.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
amples.pod
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
C} cmp $b->{C}
}
Of course, that's probably not the way your criteria are stored, but
it should give you the general idea.
http://perldoc.perl.org/functions/sort.html
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
n installing modules under Leopard? Installing modules
on Mac OS X? Installing modules in general?
http://search.cpan.org/~mkutter/SOAP-Lite/
http://perldoc.perl.org/perlmodinstall.html
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
for you? You should be able to
use it in conjunction with the File::Find solution that you already
have. chmod is documented in the perlfunc manpage.
http://perldoc.perl.org/functions/chmod.html
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
er program from Perl?
If not, perhaps you should explain in more detail what you want to do.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
ition.) I'm sure
that anyone who frequently uses Perl's patterns, or any other regular
expressions, will find this book informative today.
http://regex.info/
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
t went wrong? Thanks.
There's a better than 90% chance that you forgot to put 'use strict'
and 'use warnings' lines above your code.
use strict;
use warnings;
If you get an error message that you're not sure about, see what the
perldiag manpage says about it. H
ses the
debugger to pipe the output to a pager program for easy reading; the
backslash preserves the structure of the hash:
|x \%DB::optionVars
If you're trying to access a lexical variable, though, you'll need to
stop the debugger somewhere within the scope of that lexical in order
t
operator, documented in the
perlop manpage.
http://perldoc.perl.org/perlop.html#Quote-Like-Operators
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
don't even have to use the debugger to do
this, but it makes it easier. Without a debugger, just copy the files
so that you can look at the copies later.) If the result is not right,
make a stand-alone program that replicates the original conditions,
and you'll get the same result; fi
please tell us: What are you _really_
trying to accomplish by putting characters like '/' and '&' in a
filename?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
"the same file as we just tested", but
without going back to the OS to ask again.
http://perldoc.perl.org/functions/-X.html
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
unless -f $new_name and -s _;
> I've extracted and wrapped this code to create a little test program
> which works fine, that is, the resulting compressed file contains the
> data I expect.
That would imply that the bug is in the other part of your code. Are
you using both 'strict' and 'warnings'?
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
s are posted to the correct forum.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
maybe a little program logic can make errors reasonably
infrequent, and if the circumstances make errors reasonably easy to
recover from, it's not a bad solution.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
ot;, and pulling data from the .lnk file format probably
deserves a module of its own. Neither type of module seems to be
available on CPAN yet.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Jan 24, 2008 3:33 PM, Liam <[EMAIL PROTECTED]> wrote:
> Tom Phoenix wrote:
> > It looks as if you need to fix the system damage, so that your OS is
> > reasonably similar to the configuration that other people have used to
> > build perl. Experts on your OS may be
le was altered "during the sleep"? For
example, it could be that you tried to change a file, but your change
was still in an output buffer, and not yet flushed to disk, when the
second scan occurred.
Did the module pass all tests before you installed it?
Hope this helps!
--Tom Phoenix
sh_reference };
You can replace $sub_hash_reference with any expression that returns
the reference to your sub-hash, such as $myHash{fred}, say.
> Alternately, how could I loop through keys in a hash of a hash?
foreach my $key (keys %{ $sub_hash_reference }) { ... }
Hope this helps!
--Tom
ext, and redo operators would be unable
to operate upon the named blocks from within a nested block.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
ing those
pieces together, after you fix them up for the real address. Be sure
to include all the punctuation in the right places.
Good luck with the puzzle!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
o
build perl. Experts on your OS may be able to help, or you may be able
to re-install the OS itself.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
gram to
another. You are mistaken.
See the perlipc manpage for good information on inter-process
communication methods that actually work.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Jan 23, 2008 1:17 PM, Vahid Moghaddasi <[EMAIL PROTECTED]> wrote:
> On Jan 23, 2008 2:56 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote:
>
> > > it is hard coded to use cc compiler instead of gcc.
> >
> > Where did you get that idea?
> >
>
> The
s error when use the module:
> Can't locate auto/Net/NIS/TIEHASH.al in @INC
How did you try to build, test, and install the module?
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
arlier: I'd start by
looking in the archives of discussion areas for system administrators.
Surely somebody else has had to unify machines like this.
> my $result = grep( /$system/, $geco);
Do you want something like this?
my $result = ( index($geco, $system) != -1 );
Cheers!
--Tom Phoen
it's meant to be used.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
;
use warnings;
my $message = '$who is cool';
my %includes;
# .
$includes{'who'} = 'perl';
(my $new_message = $message) =~ s/\$(\w+)/$includes{$1}/g;
print "$new_message\n";
Hope this helps!
--Tom Phoenix
Stonehenge Perl Tra
( `ls -1c /home/etc/*log | tail -1 `);
> #determine the latest and last document
That shell command could be more efficiently done within perl with
readdir and friends.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
does your program differ from this one?
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $value = 'redirect_ID';
my $query = new CGI;
print $query->redirect("mytest.pl?ID=$value");
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
-
D was itself dropped. Is that what you want it to do?
Maybe you can invent a better solution. For example, instead of
dropping users whose UID has been used elsewhere, perhaps they could
be assigned new UIDs; I imagine that would make the users happier.
Duplicate usernames aren't so simple
you're having.
>From the look of your code, the output should be missing some whose
UID or username are duplicates; are those the ones you can't find?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
erence a reference in the
perlreftut manpage.
http://perldoc.perl.org/perlreftut.html
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
but it sounds like
what you're looking for. seek() is documented in the perlfunc manpage.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
x27; step separately from 'make test'.
Unfortunately, seeing the aftermath of a big wreck, it's sometimes
hard to see what caused it. Did you run up against your disk space
quota, perhaps?
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
iled.\n"
}
If the program you're running itself doesn't notice that things have
failed, of course, it won't be able to tell your program. In that
case, you'll want to fix the external program, or find another way to
identify problems.
Good luck with it!
--Tom Phoenix
S
ts_of_randomness/4)) {
$token .= unpack "H4", pack "S", int rand 2**16;
}
Of course, that may require changes to subsequent parts of the code
that expected $token to be an integer instead of a string, for
example.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
ut so much has
already been said, both here and on PerlMonks. So I'm appending a
program to this message that shows an unusual way of setting the prune
variable. You can, I hope, improve upon this algorithm once you
understand it.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
ld be more efficient in the long run to
spend your time working at the car wash and earning enough in tips to
buy that extra memory, which you can then use to play NetHack with the
rest of us.
Now you see why Perl programmers don't spend much time worrying about
memory management.
Cheers!
-
On Jan 17, 2008 4:32 AM, Michael Alipio <[EMAIL PROTECTED]> wrote:
> Anyone here knows a module which can handle viewstate
> in asp html forms??
Have you looked on CPAN yet?
http://search.cpan.org
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMA
\Perl\lib\CORE\perl.h(420) : fatal error C1083: Cannot open include
> file: 'sys
> /types.h': No such file or directory
Did the error message really include a line break within the file
name? That's suspicious.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubsc
ase, your original trouble was that SIGTERM wasn't being
recognized as a signal. How were you using it?
If you're still having trouble with SIGTERM, check out the diagnostic
program I've appended to this message. Do your various perl binaries
say anything interesting when you
short yet complete example program that other people could
run to see what you're trying?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
ooks like:
>
> bcp ..test_b_plan_cp in /home/file_out.txt -c -t '|' -S *-U
> ** -P **-I /home/bcp2db_sql.ini -e /home/bcp2db.error.
Is this question about Perl? I think you sent it to the wrong list.
There may be a forum elsewhere about this bcp program, or rela
On Jan 16, 2008 4:47 AM, Diego . <[EMAIL PROTECTED]> wrote:
> i'm trying to compile perl 5.8.8
Does it pass all tests, when you run 'make test'?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
1 - 100 of 1382 matches
Mail list logo