Search Results

Search: Posts Made By: scriptscript
1,541
Posted By scriptscript
Thank you Don for your extended support. ...
Thank you Don for your extended support.

Below is what where I got stuck.


my $count = 0;
open (IN, "filetext.txt");
@array = () ;
while (<IN>)
{
if (/exec/)
{
$count = 1;
...
1,541
Posted By scriptscript
Thank you looney. If possible could you...
Thank you looney.

If possible could you please help me with the perl code instead of sed.

Thanks much.
1,541
Posted By scriptscript
thanks rangarasan . But could you please...
thanks rangarasan .

But could you please make this as a perl program instead of one liner.

Once again thanks again for your great help.
1,541
Posted By scriptscript
Perl : converting file to different scalar elements
I have a text file containing 2 exec statements as below and trying to store the below 2 execs into 2 different scalar variables in perl.


/* ICD Dist, Total */ /* need to export to Excel,...
876
Posted By scriptscript
Context Managers in Python
Could anyone please explain Context Managers in Python with some detailed example or any URL that explains in detail?

Initially tried to get some help from google... but not much satisfied.
...
1,234
Posted By scriptscript
But logically it is going to be wrong if I am not...
But logically it is going to be wrong if I am not wrong.Is there a way to correct this one.

Logically speaking ... name and kargs are two different variables referring the same namespace.In our...
1,234
Posted By scriptscript
**python : passing list as argument and updating in definition
In the below python code..
Could anyone please let me know why the name(variable) is getting modified if I update the kargs variable in the definition,



def f( kargs):
...
5,489
Posted By scriptscript
Python: list with tuples to a file
I have few list value which are shown as below and want to print the same to a text file in python.

But I couldn't able to write to a file.

Could anyone please help me how to print the list...
9,105
Posted By scriptscript
Perl: scientific notation to decimal notation
hello folks,

I have few values in a log which are in scientific notation.

I am trying to convert into actual decimal format or integer but couldn't able to convert.

Values in scientific...
3,221
Posted By scriptscript
?= in perl regex
Could anyone please make me understand how the ?= works below ..

After executing this I am getting the same output.


$string="I love chocolate.";
$string =~ s/chocolate(?= ice)/vanilla/;...
1,662
Posted By scriptscript
Thanks bartus11 ..!!! That is what I am...
Thanks bartus11 ..!!!

That is what I am looking for ...!!!
1,662
Posted By scriptscript
Perl : difference between two dates in years
hello folks,

I have a requirement in which I have to calculate the difference of
localdate(today's date) and the given(earlier) date and to check whether the
difference is exactly a year or...
1,802
Posted By scriptscript
Perl : Module to get the last week date and time
Hello folks,

I am looking for a Perl module or a program logic that gives the startdate and enddate of the last week..

Suppose say, assuming this week starts from Sunday to Saturday

If I...
1,090
Posted By scriptscript
CGI Perl : only frame is getting updated
I am working on CGI perl and trying to overcome the below problem..

I have divided the page into 3 frames( attached the screenshot) how to my frameset look like.

In frame2, there will be a cgi...
1,089
Posted By scriptscript
Perl : to get the no. of elements from DataDumper
Hello Folks,

I have a DataDumper variable and the output of the dataDumper is printed in the below manner.

print Dumper \%mnemonics;

VAR1 = {

'SYS-7-CLI_SCHEDULER_LOG_STORED'...
2,538
Posted By scriptscript
Perl :: reading values from Data Dumper reference in Perl
Hi all,

I have written a perl code and stored the data into Data structure using Data::Dumper module.
But not sure how to retreive the data from the Data::Dumper.

Eg.

Based on the key...
902
Posted By scriptscript
Confusion in hash
Hi folks,

If a declare a direct hash , then the hash element works fine.

my %test = ("test",1);
print %test;
print "\n";

Here in the above, the name of the hash is predeclared...
...
1,758
Posted By scriptscript
my tons o thanks Subbeh ... This is exactly what...
my tons o thanks Subbeh ... This is exactly what I require...

and also Could you please make the above to Perl program instead of perl one liner..

Thanks once again ..

---------- Post...
1,758
Posted By scriptscript
PERL "filtering the log file removing the duplicates
Hi folks,

I have a log file in the below format and trying to get the output of the unique ones based on mnemonic IN PERL.

Could any one please let me know with the code and the logic ?

...
1,684
Posted By scriptscript
Hi durden_tyler, $line = "Jul 13 00:08:55...
Hi durden_tyler,


$line = "Jul 13 00:08:55 dq01aipaynas01p %FWSM-6-302010: 2 in use, 1661: most used";

$line =~ m/(\%(.*)\:)/;

print "\n matched";
print $&;

## printing %FWSM-6-302010:...
1,684
Posted By scriptscript
Perl :: to parse the data from a string.
Hi folks,

I have a line in log from which I need to parse few data.

Jul 6 00:05:58 dg01aipagnfe01p %FWSM-3-106011: Deny inbound (No xlate)

From the above... I need to parse the...
1,832
Posted By scriptscript
Perl script to filter the string
Hi folks,

I have a log file with the lines in the below format.


Jul 1 23:00:51 10.212.3.251 SS: %SYS-7-CLI_SCHEDULE: some error occured


I want to split the line based on the "...
Forum: Web Development 07-11-2013
1,357
Posted By scriptscript
Html java script not working
Could anyone please let me know what went wrong with the below html code ..


<html>
<head>
<script type="text/javascript">
function check(elem) {
...
1,219
Posted By scriptscript
Perl :: Getopt::Long in the program
While going through some of the perl script...

I had found the below line..
use Getopt::Long;
my $GetOptionsReturnCode = GetOptions ( '<>' => sub { push(@unknownArg, @_); }, 'h|help' =>...
1,081
Posted By scriptscript
$| example in perl
Could anyone please let me know the meaning of $| and where it is being used?

Thanks in advance...

Regards,
J
Showing results 1 to 25 of 81

 
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy