Re: perl script for a trace file

2005-09-21 Thread Chris Devers
On Wed, 21 Sep 2005, oracle s wrote: > I have a trace file( network simulator trace file) and I need to write > a perl script which computes drop probability and delay. The > parameters are read from the trace file and I need to do all these > calculations in the perl script. Since I have no kn

Re: perl script for a trace file

2005-09-21 Thread Wiggins d'Anconia
oracle s wrote: > Hello, > > I have a trace file( network simulator trace file) and I need to write a perl > script which computes drop probability and delay. The parameters are read > from the trace file and I need to do all these calculations in the perl > script. Since I have no knowledge of

perl script for a trace file

2005-09-21 Thread oracle s
Hello, I have a trace file( network simulator trace file) and I need to write a perl script which computes drop probability and delay. The parameters are read from the trace file and I need to do all these calculations in the perl script. Since I have no knowledge of perl, could you please ad

Re: Reading in external file, strip out duplicates, sort then save as ext. file

2005-09-21 Thread John W. Krahn
macromedia wrote: > Hi, Hello, > I have a file that I would like to read in then do the following: > > - Read in each line and remove any duplicate text with tags > - Sort the file so all tag IDs are in sequential order > - Save the results to a different file name. > > Can this be done easily?

re: Reading in external file, strip out duplicates, sort then save as ext. file

2005-09-21 Thread Chris Devers
On Wed, 21 Sep 2005, macromedia wrote: > I have a file that I would like to read in then do the following: > > - Read in each line and remove any duplicate text with tags > - Sort the file so all tag IDs are in sequential order > - Save the results to a different file name. > > Can this be done

Re: trying to run net::ssh::perl have errors

2005-09-21 Thread Wiggins d'Anconia
O'Brien, Bill wrote: > Greetings, > > Not sure if this is correct place, but I need to start somewhere, I have > cygwin install on my work station and I'm trying to to use > NET::SSH::Perl but I'm getting an error. > I have installed NET:SSH:Perl-1.28, but I'm getting the following error, > when I

re: Reading in external file, strip out duplicates, sort then save as ext. file

2005-09-21 Thread macromedia
Hi, I have a file that I would like to read in then do the following: - Read in each line and remove any duplicate text with tags - Sort the file so all tag IDs are in sequential order - Save the results to a different file name. Can this be done easily? If so, how? I'm really a newbie at this

re: Reading in external file, strip out duplicates, sort then save as ext. file

2005-09-21 Thread macromedia
Hi, I have a file that I would like to read in then do the following: - Read in each line and remove any duplicate text with tags - Sort the file so all tag IDs are in sequential order - Save the results to a different file name. Can this be done easily? If so, how? I'm really a newbie at this

Re: Splitting on =

2005-09-21 Thread Tommy Nordgren
Sep 21, 2005 kl. 9:48 PM skrev Tommy Nordgren: How do you split a string on the equality character? Neither split (/=/,$myvar) nor split ('=',$myvar) appears to work "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" -- To unsubscribe,

trying to run net::ssh::perl have errors

2005-09-21 Thread O'Brien, Bill
Greetings, Not sure if this is correct place, but I need to start somewhere, I have cygwin install on my work station and I'm trying to to use NET::SSH::Perl but I'm getting an error. I have installed NET:SSH:Perl-1.28, but I'm getting the following error, when I run the script. Can't locate Math/

Re: Splitting on =

2005-09-21 Thread John W. Krahn
Tommy Nordgren wrote: > > This is my full script: > #!/usr/bin/perl > use strict; > use warnings; > > if ( @ARGV !=2) { > die "Usage: nibfixup Nibfile Applicationname\n" ; > } > > my $nibfile = $ARGV[0]; > my $appname = $ARGV[1]; > > print "Running nibtool\n"; > my $dictionary = `/usr/bin/n

Re: Splitting on =

2005-09-21 Thread Tommy Nordgren
Sep 21, 2005 kl. 9:55 PM skrev Wagner, David --- Senior Programmer Analyst --- WGO: Tommy Nordgren wrote: How do you split a string on the equality character? Neither split (/=/,$myvar) nor split ('=',$myvar) appears to work "Home is not where you are born, but where your heart finds peace

Re: Splitting on =

2005-09-21 Thread John W. Krahn
Tommy Nordgren wrote: > > Sep 21, 2005 kl. 9:54 PM skrev John W. Krahn: > >> Tommy Nordgren wrote: >> >>> How do you split a string on the equality character? >>> Neither split (/=/,$myvar) >>> nor split ('=',$myvar) >>> appears to work >> >> How does it not work? > > When called with the sy

RE: Splitting on =

2005-09-21 Thread Bakken, Luke
Tommy Nordgren wrote: > How do you split a string on the equality character? > Neither split (/=/,$myvar) > nor split ('=',$myvar) > appears to work > "Home is not where you are born, but where your heart finds peace" - > Tommy Nordgren, "The dying old crone" You are doing something incorrectly.

Re: Splitting on =

2005-09-21 Thread Jeff 'japhy' Pinyan
On Sep 21, Tommy Nordgren said: When called with the syntax I've used, it returns a list containing a single string. I'll try without the paranthesis. Can it be that perl treats the entire source text between left and right paranthesis as a regular expression. If so, I consider this a bug.

Re: Splitting on =

2005-09-21 Thread Tommy Nordgren
Sep 21, 2005 kl. 9:54 PM skrev John W. Krahn: Tommy Nordgren wrote: How do you split a string on the equality character? Neither split (/=/,$myvar) nor split ('=',$myvar) appears to work How does it not work? When called with the syntax I've used, it returns a list containing a si

RE: Splitting on =

2005-09-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Tommy Nordgren wrote: > How do you split a string on the equality character? > Neither split (/=/,$myvar) > nor split ('=',$myvar) > appears to work > "Home is not where you are born, but where your heart finds peace" - > Tommy Nordgren, "The dying old crone" Really need the context of wha

Re: Splitting on =

2005-09-21 Thread John W. Krahn
Tommy Nordgren wrote: > How do you split a string on the equality character? > Neither split (/=/,$myvar) > nor split ('=',$myvar) > appears to work How does it not work? It works for me. $ perl -le' print for split /=/, "one=two" ' one two John -- use Perl; program fulfillment -- To unsu

Splitting on =

2005-09-21 Thread Tommy Nordgren
How do you split a string on the equality character? Neither split (/=/,$myvar) nor split ('=',$myvar) appears to work "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,