Please use the Reply All feature so that your replies get sent to the
mailing list.
On Wed, Jan 6, 2016 at 11:21 AM, Ankita Rath
wrote:
> Okay I will try it.. Thank u
>
> Ankita
> On 6 Jan 2016 22:44, "Mike D" wrote:
>
>> In the future, please use the Reply A
In the future, please use the Reply All feature.
So, run `echo $PATH` on both users.
If the path for the Perl executable is different for the user in which the
script works, try editing the path variable for the user in which it
doesn't to use the path to the working Perl executable:
http://supe
use diagnostics;
On Nov 19, 2014 8:23 AM, "Kevin Walzer" wrote:
> Running this code in Perl:
>
> use LWP::Simple;
> my $url= "http://mywebsite.com/foo.ini";;
> my $page = get($url);
>
> produced this error:
>
> sh: -c: line 0: unexpected EOF while looking for matching `''
> sh: -c: line 1: sy
Strawberry
On Aug 5, 2014 4:20 PM, "ESChamp" wrote:
> Which perl should I (an occaisonal perl user, a rare perl programmer)
> use? I see
>
> cygwin
> strawberry perl
> activestate perl
> dwim perl
>
> ???
>
> Thanks.
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional
Smith,
Can you please try by setting the path extension
C:\>set PATHEXT=%PATHEXT%;.pl
Thank you
Govardhanan D
Excuse for Typos- Sent from Mobile.
From: Michael Smith
Sent: 03-02-2013 AM 03:24
To: beginners@perl.org
Subject: Re: getting perl to open pl f
wrote:
> Hi,
>
> I am trying to convert the string abc.def.ghi.amm to abcdefghiamm using split
> and concatenation. I am missing something somewhere.. please help me to fix
> the code
>
> my $string = "abc.def.ghi.amm";
>
> my @d = split(/\./,"$strin
Hi,
I am trying to convert the string abc.def.ghi.amm to abcdefghiamm using split
and concatenation. I am missing something somewhere.. please help me to fix the
code
my $string = "abc.def.ghi.amm";
my @d = split(/\./,"$string");
my $e = @d;
for (my $i=0; $i < $e; $i++
Hi all, just started using Perl today, coming over from a background in
C#/Java and Python.
I seem to be grasping Perl rather nicely (I think) until I got up to
references in Beginning Perl.
Considering the following code, are all my comments correct?
# this function expects an array to be passe
Hello everyone,
I just now realized that the next YAPC is in Asheville, NC, which is
right in my backyard (+2 hrs of driving). I'm very tempted to attend,
but I've never been to a YAPC. Any opinions out there as to their
usefulness? Also, what happens in the hackathons? I have a program
that I
Hello everyone,
I would like to learn an efficient way to change a single column in a
file that is accessed by an external program after the column is
changed each time. open write close is what I have been using. I
thought that tieing could help speed it up. While I didn't dig in too
deeply, m
I ran into something that I need help understanding. In the attached
script, subroutine file_proc1 converts all elements of @molec to
undef, while file_proc2 does not. adjusting file_proc1 to first slurp
the file into an array "fixes it". My best guess (via dum_sub) is
that the subroutine is cro
19.01.2011 0:43, Brian Fraser пишет:
The smart match is no longer commutative - That was removed after 5.10.1, I
think.
http://www.learning-perl.com/?p=32
http://perldoc.perl.org/perlsyn.html#Smart-matching-in-detail
Brian.
Thank you!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.or
19.01.2011 0:09, Uri Guttman пишет:
but why don't you just call exists on the hash key? there is no win to
using smart matching for that. it is included for consistancy but it
isn't needed for hash keys.
I just want to understand how does it work :)
--
To unsubscribe, e-mail: beginners-uns
I'm trying to check whether the given key exists in the hash.
The simple example:
use feature ':5.10';
my %a = (a => 1, b => 2);
say %a ~~ 'a' ? 'YES' : 'NO';# says NO -- why?
say %a ~~ 'c' ? 'YES' : 'NO';# says NO
say 'a' ~~ %a ? 'YES' : 'NO';# says YES
say 'c' ~~ %a ? 'YES' : 'NO';
In article
, Brandon
McCaig wrote:
> On Tue, Oct 19, 2010 at 2:31 AM, brian d foy wrote:
> > Actually, we call it the "range operator" in Learning Perl. It just
> > happens to be in a more general section named "List Literals". Both
> > "range ope
In article <20101018005850.ga2...@playground.mcclains.net>, Mike
McClain wrote:
> This threw me for a loop for a while since there is no comma in
> map { @{ $HoAoA{$_} } [ 0..$#{ $HoAoA{$_} } ]->[1] } keys %HoAoA;
> but I figured out that the range operator '..' returns a list and
> eventua
ing-Perl-Student-Workbook-brian/dp/0596009968
--
brian d foy
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Actually, I have now figured it out, and it all makes sense!
Thanks for your help.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Hi,
If somebody can assist me with my query it would be much appreciated.
I'm basically retrieving an XML file from Digg. I can retrieve the
Digg data okay, but am struggling with trying to process the returned
data with Perl, largely on account with my unfamiliarity with XML
processing, but also
This is my first post to the list but I doubt anyone here will do your homework.
On 3/1/10, freefrank wrote:
> Any body could help me code these 4 modules on
> http://moodle.cs.ualberta.ca/mod/assignment/view.php?id=14448
> great thanks!
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@
Hi,
I'm running Perl on Windows XP, and have a script which I've run for
ages with no problems. However, I now have a message per below:
"Win32 version 0.27 required--this is only version 0.24 at D:/Perl/lib/
Cwd.pm line 663."
.. .and the script quits on me.
I guess I
In article <1893d21769b943eea293dcc1e9429...@p43400e>, David
Christensen wrote:
> Is unlink() supposed to provide an error message on failure? The
> documentation does not say so:
I've fixed this in commit 40ea6f68 to perl blead. The entry now reads:
=item unlink LIST
X X X X X
=item unlink
In article <874opczzn6@quad.sysarch.com>, Uri Guttman
wrote:
> subscribe using one and to post using the other would work. also this
> list doesn't have anything directly to do with the FAQ editing. you need
> to send it to brian d foy who is the FAQ editor.
No, no, no
In article
,
raphael() wrote:
> I just finished reading 'Learning Perl' & I was wondering if someone
> could point me to the book "Perl Study Guide",
> also called "Learning Perl Student Workbook". It's a companion book to
> "Learning Perl" but is not available in my country.
>
> I was hopin
Thanks :)
On Mon, Mar 30, 2009 at 12:02 PM, John W. Krahn wrote:
> D. Crouse wrote:
>>
>> I have a perl -e function in my .bashrc file.
>> This sources in the perl -e function so I can run it by just the command
>> name.
>> I'm having trouble with the su
SOLUTION !
ah I got it !!! :)
You have to use the $ENV
grepi ()
{
searchfor=$1 \
perl -ne 'BEGIN {$/ = "\n\n"} print if /$ENV{searchfor}/' < $2
}
Just an hour or two of working on it...and it finally pas out ! ! :) WOOT !
On Mon, Mar 30, 2009 at 11:30 AM
I have a perl -e function in my .bashrc file.
This sources in the perl -e function so I can run it by just the command name.
I'm having trouble with the substitution of my $1 bash variable into
the perl -e function.
Here is what I have so far.
grepi ()
{
perl -ne 'BEGIN {$/ = "\n\n"} print if /$1
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <[EMAIL PROTECTED]>, Gunnar
Hjalmarsson <[EMAIL PROTECTED]> wrote:
> I think you are right. I'd suggest that you send a
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article
<[EMAIL PROTECTED]>,
timbo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was just wondering if any general tools / modules exist to help
> measure the efficiency of any code.
> I k
Gvim or vim have an add on called perl-support that provides some very handy
IDE-like features.
Best regards,
J. D.
On 5/2/08, Dr.Ruud <[EMAIL PROTECTED] <[EMAIL PROTECTED]>>
wrote:
>
> Rodrigo Tavares schreef:
>
>
> > Anybody knows a simple and good IDE Perl
In article
<[EMAIL PROTECTED]>, Chas.
Owens <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote:
> snip
> > my $user_total = &total();
> snip
>
> First off, don't call functions with &*.
The is _Learning Perl_, and he hasn't got to the point where we tell
t
In article <[EMAIL PROTECTED]>, Gunnar
Hjalmarsson <[EMAIL PROTECTED]> wrote:
> I don't understand what you mean. However, the code below confuses me
> for another reason.
>
> > use strict;
> > use warnings;
> > my @fred = qw/1 3 5 7 9/;
> > my $fred_total = &total(@fred);
> > print "The total o
In article <[EMAIL PROTECTED]>, Richard Lee
<[EMAIL PROTECTED]> wrote:
> While reading 'mastering perl', I run into @- and @+ for the first time.
> Trying to understand what's going on, I ran the code from the book, but
>
> $-[1] and $+[1] shoudln't match only the first match? (in this case,
> sh
I'm running Gentoo, which does not yet have version 5.10 in the tree. I
downloaded and installed version 5.10 from source. (I'm not certain that
this is the cause of the issue, but it's the only thing I can think of.)
Now, Perl/CPAN appears to be putting packages into my root directory:
root
You could put it in another file called foo.pl and then put this in your main
perl script:
require 'foo.pl'
You'll need to be sure you @INC contains the path to foo.pl. Also, I suspect
you actually want to read these keys from a file (or other persistence
mechanism), but that's another story.
In article <[EMAIL PROTECTED]>, Robert
Hicks <[EMAIL PROTECTED]> wrote:
> When it asks about threads should I enable them or no?
In Perl's Configure, if you don't understand the question, accept the
default answer. :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
In article <[EMAIL PROTECTED]>, Mr. Shawn H. Corey
<[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > I'm working on yet another exercise from Intermediate Perl. I've been
> > given a script that searches for files that fall between a two
> > timestamps.
> Why do people who write these books have e
t;
> > and you want the list sorted by major, then minor, then build.
> >
> > #!/usr/bin/perl
> >
> > use strict;
> > use warnings;
> >
> > my @versions;
> > while () {
> > chomp;
> > die "invalid format" unl
ble)
The following script extracts the information out of your sample data.
There are no checks if the data format is "correct" (nesting order, additional
text).
It does not result in an array of hashes, but in a single hash.
Modify it if needed :-)
Dani
#!/usr/bin/perl
use str
Sumit am Montag, 9. Juli 2007 09:43:
> Hey Guys,
Hi Sumit
> I am a new bie to this Group.
> I have a Problem.
> I want to remove an element from an array whose index i dont know.
>---
>
> #!/usr/bin/perl -w
> use strict;
use warnings; # additionaly
> my @updateNames = ();
>
John W. Krahn am Samstag, 7. April 2007 01:05:
> D. Bolliger wrote:
> > Chas Owens am Freitag, 6. April 2007 13:27:
[snip
> $ perl -e'
> use Benchmark q[cmpthese];
> my $wordlist = qx[cat /usr/share/dict/words];
> cmpthese -10, {
> twomaps => q{ join
Chas Owens am Freitag, 6. April 2007 13:27:
> On 4/6/07, D. Bolliger <[EMAIL PROTECTED]> wrote:
>
> > $ perl -nle 'print join " ", map ucfirst, map lc, split' < in.txt >
> > out.txt
>
> There is no need to have multiple maps and the @ARGV/&
Glenn Booth am Donnerstag, 5. April 2007 23:10:
> Hi All,
Hi Glenn
> I'm a two-week perl newbie, trying to get my head around text
> handling. I keep getting sent badly formatted text files, which
> I have to 'repair' so that I can use them to feed an Oracle
> database. They are typically a few t
D. Bolliger am Dienstag, 3. April 2007 07:56:
> Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03:
> > Hi,
> > Before starting my problem I just want to thank all the active
> > members
> > who had literally mentored me in learning perl.
> >
> > I have bunc
Nath, Alok (STSD) am Dienstag, 3. April 2007 07:03:
> Hi,
> Before starting my problem I just want to thank all the active
> members
> who had literally mentored me in learning perl.
>
> I have bunch of this bash scripts which has lot of functions.
> I wanted to call and use them in a perl script.I
Karyn Williams am Donnerstag, 29. März 2007 20:27:
[snip]
> It varies greatly. Often one or two. Sometimes 70. The size of the files is
> fairly substantial:
>
> -rw-r--r-- 1 root other249595095 Sep 1 2006 maillog.200608
>
> I am getting Out of memory errors while running the script.
[
Lee Conine am Montag, 26. März 2007 16:03:
Hello
(just noted Tom Phoenix's answer with the hint to perlfaq8 after writing, but
sending anyway...)
> I see that there are a lot of people wanting to know how to add
> directories to their @INC permanently.
>
> I accomplished this by adding the foll
Jeff Pang am Sonntag, 4. März 2007 08:35:
> >by convention any function, variable, or hash key that begins with an
> > underscore, '_', is considered to be private.
>
> Seems not useful.
[ example snipped]
Hello Jeff
Chas referred to a _convention_ - which does not enforce privacy.
IMO it's usef
jm am Montag, 26. Februar 2007 18:54:
Hi
> is there a function, module, script, etc. that converts all uppercase to
> proper mixed case. this particular need is for an address list that is all
> uppercase
This description of what you want to achieve does not correspond to the
example below; yo
[EMAIL PROTECTED] am Montag, 26. Februar 2007 18:49:
[snip]
Hi!
> use strict;
> use warnings;
>
> my $rdns="cn=Exchange Sites,cn=Proxy Views,cn=JoinEngine
> Configuration,ou=Conf,o u=InJoin,ou=applications,dc=marriott,dc=com";
>
> my $result="cn=Exchange Sites";
>
> if ($result !~ /\Q$rdns\E/six)
Beginner am Montag, 26. Februar 2007 17:02:
> On 26 Feb 2007 at 15:58, D. Bolliger wrote:
> > Beginner am Montag, 26. Februar 2007 14:50:
Hi
> > > I am trying to parse some dhcp-lease files to extract the ip, mac and
> > > hostname.
> > >
> > > I
gt; my $file = '/var/lib/dhcp3/dhcpd.leases';
> my ($ip,$mac,$host);
>
> #$/ = "}\n";
used below :-)
> $/ = '';
>
> open(FH,$file) or die "Can't open $file: $!\n";
>
> while () {
> chomp;
> ($ip,$mac,
Arantxa Otegi am Mittwoch, 14. Februar 2007 12:37:
> I have memory problems programming with perl: "out of memory!"
>
> I have to process a lot of xml files which are in different directories
> (more than 2 files in 110 directories). The files are quite small
> (almost all of them are smaller t
Ana Saiz García am Dienstag, 13. Februar 2007 13:02:
> On 12/02/07, D. Bolliger <[EMAIL PROTECTED]> wrote:
> > Ana Saiz García am Montag, 12. Februar 2007 22:26:
[snipp and following code stripped]
> > #!/usr/bin/perl
> >
> > # don't forget:
D. Bolliger am Montag, 12. Februar 2007 23:03:
> Mumia W. am Montag, 12. Februar 2007 21:53:
> > On 02/12/2007 02:33 PM, Vladimir Lemberg wrote:
[snipped]
Mumia,
please excuse me for my inappropriate correction!
> > You probably want to push the filename onto the arr
:
> >
> > use strict;
> > use warnings;
> > use Win32;
> > use File::Find;
> >
> > @ARGV = Win32::GetCwd() unless @ARGV;
> >
> >
> > my @dirs;
> >
> > find (\&FindXml, $ARGV[0]);
> >
> > sub FindXml
>
Ana Saiz García am Montag, 12. Februar 2007 22:26:
> Hello
Hello Ana
> First of all, I apologize if this is not the right list to ask my question,
> but as I am a perl beginner, I think it is the most suitable list for me
> :o)
>
> So here goes my question:
>
> I have a main program which will ca
ngs;
> use Win32;
> use File::Find;
>
> @ARGV = Win32::GetCwd() unless @ARGV;
> my @dirs;
>
> find (\&FindXml, $ARGV[0]);
>
> sub FindXml
> {
> return if !stat || -d;
> ( my $xml_file = $File::Find::name ) =~ /^.+\.xml$/;
> push ( @dirs, $xml
Sayed, Irfan (Irfan) am Montag, 12. Februar 2007 17:05:
> Hi All,
>
> I need to concatenate specific string for each element in the array. I
> tried in the following way with the help of join operator.
Hi Irfan,
you already got hints about the error and the two famous 'use' lines that make
life
[EMAIL PROTECTED] am Montag, 12. Februar 2007 14:11:
> >I am not sure I understand the problem, but do you know the
> >Text::Wrap standard module in any case?
>
> I used it on Unix, but I'm not sure it runs on my DOS version.
Sounds as if it might be worth trying. It won't hurt your box if it doe
[EMAIL PROTECTED] am Freitag, 9. Februar 2007 14:21:
> How do I get these two into one one liner?
>
> Obviously, semicolon, but I want to operate on the file
> all over again without using tmp files.
[1]
> cp /net/u/1/v/vjp2/weco.txt /net/u/1/v/vjp2/junk.tmp
[2]
> cat /net/u/1/v/vjp2/junk.tmp | p
[EMAIL PROTECTED] am Freitag, 9. Februar 2007 14:11:
> I just found this one online but not sure I understand it
>
> what are the .{ and s/ called so I can look them up?
>
> http://user.it.uu.se/~matkin/programming/PERL/perl-cookbook.shtml
>
>perl5 -p000e 'tr/ \t\n\r/ /;s/(.{50,7
[EMAIL PROTECTED] am Donnerstag, 8. Februar 2007 17:09:
> When I run command line perl (Unix or DOS) something gives me errors
> (several times) as if perl is trying to send something to the shell
> command line. Alternatively, it expects further input and I hit either
> ^Z or ^D, bu
Sharan Basappa am Mittwoch, 7. Februar 2007 16:13:
> On 2/7/07, Rob Dixon <[EMAIL PROTECTED]> wrote:
> > Sharan Basappa wrote:
> > > On 2/6/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> > >> On 2/6/07, Sharan Basappa <[EMAIL PROTECTED]> wrote:
> > >>> Question is how to embed text in a perl program
On Sunday 28 January 2007 11:58, Daniel D Jones wrote:
> I'm trying to install Apache2::ServerUtil from CPAN. During make, I get
> the following complaint:
>
> * WARNING *
>
> Your Perl is configured to link against libgdbm,
> but libgdbm
I'm trying to install Apache2::ServerUtil from CPAN. During make, I get the
following complaint:
* WARNING *
Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You could just symlink it to /usr/lib/libgdbm.so.3.0.0
* WARNIN
Michael Alipio am Mittwoch, 24. Januar 2007 04:21:
> From: John W. Krahn <[EMAIL PROTECTED]>
> Sent: Wednesday, January 24, 2007 10:57:51 AM
> > Yes, the substitution operator (s///) returns true (1) or false ('') in
> > either list or scalar context. To do want you want you have to do the
> > as
Michael Alipio am Sonntag, 21. Januar 2007 13:07:
> D. Bolliger <[EMAIL PROTECTED]>
> > Because everything matched - that is: vd=\w+(,) - is replaced with the
> > semicolon.
> >
> > You seem to misunderstand the meaning of the capturing parenthesis '()
David Moreno Garza am Sonntag, 21. Januar 2007 07:50:
> On Sat, 2007-01-20 at 09:31 +1100, Ken Foskey wrote:
> > > What's exactly the difference between:
> > > ++$lines and $lines++; ?
> >
> > Nothing in this context.
>
> What about other contexts?
Hi David
#!/usr/bin/perl
use strict;
use warni
Michael Alipio am Sonntag, 21. Januar 2007 04:08:
> Hi,
Hi Michael
> my $string = 'vd=root,status=';
>
> #Now, I want to transform it into:
> 'vd=root;status='
> #That is replace the comma(,) between root and status with semicolon (;);
>
> $string =~ s/vd=\w+(,)/;/;
> print $string,"\n";
>
> #And
Dr.Ruud am Donnerstag, 4. Januar 2007 19:37:
> "D. Bolliger" schreef:
> > perldoc -f cp
>
> You were kidding, right? :)
ugh, my mail client must have automatically abbreviated
perldoc File::Copy # inlcuding cp
:-)
thanks,
Dani
--
To unsubscribe, e-mail: [EMAIL
Tom Messmer am Mittwoch, 3. Januar 2007 17:02:
> Hello everyone,
Hello Tom
> Just joined this list and I have a doozie I've been working on for a
> bit here to no avail. The entire problem is this; I have a list of
> files, say that they are named "flynn.foo, flynn_something.foo,
> flaherty.foo f
D. Bolliger am Dienstag, 2. Januar 2007 12:55:
> Dharshana Eswaran am Dienstag, 2. Januar 2007 08:02:
[snip]
> > $seq = ;
> > chop($seq);
> > @seq = split(/ +/, $seq);
> > $seq_len = @seq;
[snip]
> > for($i=0; $i<$seq_len; $i++) {
> > $read1[$i] = $tab
Bram Kuijper am Dienstag, 2. Januar 2007 18:07:
> Hi all,
Hello Bram Kuijper
> I try to execute the following SQL query in PostGreSQL 8.1. However, it
> gives errors since DBI::execute() automatically quotes when it inserts
> its arguments into the SQL query. Is there any way to change the quot
Dharshana Eswaran am Dienstag, 2. Januar 2007 08:02:
> Hi All,
Hi Dharshana Eswaran
> I have a piece of code which reads as shown below:
>
> unless (open(IN, "in.txt")) {
> die("Cannot open input file \n");
> }
> binmode(IN);
>
> unless (open(OUT, "+>output.txt")) {
> die("Can
Jeff Pang am Mittwoch, 20. Dezember 2006 15:09:
> "Dukelow, Don" <[EMAIL PROTECTED]>
> >I can't get "use File::Copy" to work. I declare it at the beginning of
> >script but when I try to use it latter nothing happens. There are no
> > errors and nothing is copied.
>
> Did you also add "use strict
Huub am Mittwoch, 20. Dezember 2006 14:47:
> Hi,
Hello
> I'm trying to insert a record in a MySQL database using Perl. I already
> wrote a (working) Perl script to make queries, but now I get this problem.
>
> This is the relevant part of the code:
>
> $plaats = "Oostvoorne";
> $straat = "Middell
oryann9 am Montag, 18. Dezember 2006 19:52:
> "D. Bolliger" <[EMAIL PROTECTED]> wrote:
[snipped]
> How are my quesitons unclear???
[snipped]
I answered offlist. Sorry to all for the noise of this notice.
Dani
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
Kelly Jones am Dienstag, 19. Dezember 2006 01:49:
> perl -w dings me if I use a variable just once:
>
> Name "main::foo" used only once: possible typo...
>
> even if I'm magically defining/using $foo somewhere else.
>
> Is there any way to tag a variable to tell the -w option that I'm
> intentional
oryann9 am Montag, 18. Dezember 2006 16:55:
> Hello...
> I have thought about this one and tried various code changes but cannot
> get what I want.
>
> My problem: mismatched UIDs in password files.
> My solution:
>
> #1 store passwd files in a globbed array
> #2 create array reference from globb
Sharan Basappa am Montag, 18. Dezember 2006 08:09:
> On 12/17/06, D. Bolliger <[EMAIL PROTECTED]> wrote:
> > Sharan Basappa am Sonntag, 17. Dezember 2006 16:22:
> >
> > Hello
> >
> > > While going through some of the old text files, which til now
Sharan Basappa am Sonntag, 17. Dezember 2006 16:22:
Hello
> While going through some of the old text files, which til now I thought
> were in good shape, found
> that some of the files were corrupt and contained garbage data.
We need to know more; what garbage? Where in the file? Are the files
Gregory Machin am Freitag, 15. Dezember 2006 14:05:
> On 12/14/06, D. Bolliger <[EMAIL PROTECTED]> wrote:
> > Gregory Machin am Donnerstag, 14. Dezember 2006 13:24:
[reordered]
> > > #!/usr/bin/perl
> > >
> > > # if your prgram has the string &quo
Chad Perrin am Donnerstag, 14. Dezember 2006 19:36:
> On Thu, Dec 14, 2006 at 10:53:26AM -, Dermot Paikkos wrote:
> > On 14 Dec 2006 at 5:44, Jeff Pang wrote:
> > > Sorry that I never drew the graph for HTML page.Now I need to generate
> > > some histogram for the statistic datas,I searched CPA
Gallagher, Tim F (NE) am Donnerstag, 14. Dezember 2006 15:29:
> Lets say that I have a list of data that have a few things in common, ie
>
> this is a 1 test to see 2 what is happening 3 to the state of the 4
> country
> all work 1 and no 2 play makes 3 jack a dull boy 4
> how 1 much wood 2 could a
Gregory Machin am Donnerstag, 14. Dezember 2006 13:24:
> hi
Hi Gregory
> the script will not work
"Not work?" :-)
> if I use $ARGV[0] but works 100% if I hard
> code the $input variable;
> what have i missed ?
You can give anything as cmd line argument, and the script will tell you that
it i
Brad Grandorff am Donnerstag, 14. Dezember 2006 03:02:
> > "D. Bolliger" <[EMAIL PROTECTED]> wrote: Brad Grandorff am Donnerstag, 14.
Dezember 2006 01:58:
> > > I have managed to get a one liner working for modifying a particular
> > > file in a directory
Brad Grandorff am Donnerstag, 14. Dezember 2006 01:58:
> I have managed to get a one liner working for modifying a particular file
> in a directory, and I have also used arrays to read in then modify a
> particular file... but I can't seem to do so using opendir and reading in
> several files at on
Gregory Machin am Mittwoch, 13. Dezember 2006 12:08:
> Hi
Hello Gregory
> please could you have a look and see what I have missed.
use strict;
use warnings;
# and declare variables with 'my' where missed
> use File::Tail;
> my $name="/etc/openvpn/logs/CT-NET.log";
my $name='/etc/openvpn/logs/
D. Bolliger am Mittwoch, 13. Dezember 2006 02:25:
Sorry for answering my own post...
[snipped]
> The script contains a testcase with "long" strings, it takes 1.2 secs on my
> old machine (the test case is certainly not a worst case scenario).
[snipped]
> ### Test cas
Tom Phoenix am Mittwoch, 13. Dezember 2006 02:32:
> On 12/12/06, D. Bolliger <[EMAIL PROTECTED]> wrote:
> > $found{$1}++ for ($s2=~/($search)/g); # although count not used
> > below
>
> Didn't $search just come from the data? It's a string, not a pattern.
Helliwell, Kim am Dienstag, 12. Dezember 2006 21:56:
> Is there a function (perhaps in a library module) that would take two
> strings and return the common substring (if any) contained in the
> arguments? I've been looking for such a beast on CPAN, but no luck so
> far.
>
>
>
> If not, I guess I h
Derek B. Smith am Dienstag, 12. Dezember 2006 23:19:
> I have a string like so:
>
> /home/dbsmith/passwd.oftappp1.hpux and I need to parse
> out oftappp1 and hpux.
>
> I have tried to use substr and and regexp with =~.
> Here is what I have tried, but need some help cause I
> am getting frustrated.
kilaru rajeev am Dienstag, 12. Dezember 2006 13:22:
> Hi All,
Hello
> I want to calculate the time difference(hh:mm:ss) between two when they are
> provided with date and time. Could anyone provide the module to handle
> this?
There are different modules to handle date/time tasks.
CPAN is a gre
hOURS am Donnerstag, 7. Dezember 2006 06:51:
> Thanks for trying, but this right here is the heart of the matter.
> Id be using alarm to time a certain thing. It seems to me, any
> explanation of how to do that, be it plain English or sample code has to
> incorporate th
hOURS am Sonntag, 3. Dezember 2006 03:25:
> "D. Bolliger" <[EMAIL PROTECTED]> wrote: hOURS am Donnerstag, 30. November
2006 21:09:
> > Jen Spinney wrote: On 11/20/06, hOURS wrote:
> > > Recently I posed a question on here regarding a program I have that
ents to the secureshell and/or a
security ML, and not yet thinking about which perl module to use.
Assume that a box does not allow remote logins (could be, according to your
descriptions). Now you want to bypass these restrictions only to transfer a
file? I doubt this being a good idea.
A
Sergio Escalada am Samstag, 2. Dezember 2006 15:41:
> Thanks for replies.
>
> The purpouse of this mini-script is to list the rows from a database loaded
> in memory ($ref_db is the reference to hashtable that cotains the DB). So I
> want to order the fields by different sort rules, and make the pr
Derek B. Smith am Freitag, 1. Dezember 2006 20:31:
> --- zentara <[EMAIL PROTECTED]> wrote:
> > On Thu, 30 Nov 2006 13:34:16 -0800 (PST),
> > [EMAIL PROTECTED]
> > >I need to gather a single filename on hundreds of
> > >servers ranging in *UX flavors from AIX, HP,
[snip]
> > >I was initially thinki
Omega -1911 am Freitag, 1. Dezember 2006 19:01:
> Hi Rob & Dani,
Hello Omega
> Thanks for your help!!! I will try the suggestion you made Rob and as soon
> as I finish typing this, I'll try Dani's code. I had someone
> contact me off-list and provided me with the following regex that
> appeared
1 - 100 of 1014 matches
Mail list logo