Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: irudayaraj
3,014
Posted By irudayaraj
qw in Perl
Hi,

I need clarification regarding qw.
How does qw take the value given inside / /
does it act as a single variable value and what is its use here?



Thanks in advance
1,102
Posted By irudayaraj
ssh in perl
Hi
Can anyone tell me what does the below command do in Perl



Thanks in advance
910
Posted By irudayaraj
CGI in Perl
Hi,
Am unfamiliar with using CGI modules in Perl.
Though i checked in few sites about CGI , i dint get a clear idea.
Can anyone please explain me the purpose of these statements, it ll be very...
858
Posted By irudayaraj
Grep pattern in PERL
Hi,
Can anyone tell me how this grep works?



Type of input is not known

Thanks in advance
1,245
Posted By irudayaraj
Epoch in Perl
Hi,
Can anybody tell me how time is calculated in the below or what is actually being done here?
Also can you explain in simple words about epoch time and why it is used?





Thanks in...
730
Posted By irudayaraj
Grep in PERL
Hi,

Can anybody let me know how this grep will work.
The input and output is not known.



Also can you give me the details of any link where i can find clearly about grep
Thanks in...
1,539
Posted By irudayaraj
Timestamp conversion in PERL
Hi,
I have a file as below



I need to overwrite the 2 nd column alone to numeric format like "06122011030414012345" as per the timestamp value

output file should be



the...
3,006
Posted By irudayaraj
yes exactly. The string beyond timestamp will...
yes exactly. The string beyond timestamp will have dots embedded in couple of numbers or names like "name.is" , "name123.is"
3,006
Posted By irudayaraj
the other columns may also have dot (.) in it...
the other columns may also have dot (.) in it which should not be replaced with semicolon. only timestamp column should be handled. i.e only the 2 nd column. how can this be done.
[file]
filename|...
3,006
Posted By irudayaraj
Replace dot with semicolon in PERL
Hi,
I have a file in PERL in the following pattern

[file]
filename| 06-Dec-11 03.04.14.000000 PM
filename1| 06-Dec-11 05.05.14.000000 PM
[/QUOTE]



I need to replace .(dot) with...
811
Posted By irudayaraj
Thanks it works. Can i know how it works?
Thanks it works. Can i know how it works?
811
Posted By irudayaraj
Replace [|] in perl
Hi
I have a file newfile.txt in perl. Its content is


22533978[|]06-Dec-11 03.04.14.000000 PM[|]99999[|]01-May-12 03.28.21.000000 PM[|]22[|]2212{|}
29055978[|]03-Jan-12 01.24.24.000000...
1,971
Posted By irudayaraj
Thanks But die/eval/whenever sqlerror exit...
Thanks
But die/eval/whenever sqlerror exit sql.sqlcode doesnt work.
Is there any other better option to capture the error code there itself and exit from the script?
1,971
Posted By irudayaraj
Thanks:) But how to capture the error no? ...
Thanks:)
But how to capture the error no?

Also how can it be done using "eval"?
1,971
Posted By irudayaraj
Error Handling using ISQL for oracle connection in Perl
Hi

Am making connection to oracle using ISQL as shown in the code.
This code is just a minor part of a big code.
I want to capture the error if the password/login is wrong or if connection is...
1,649
Posted By irudayaraj
PERL/UNIX - SVN check in command
I am working in perl.
I need to do some svn check in from my server.
I need to install svn in my server.
I have the package "svn" in my server path
How can I install that in my server.
I tried...
2,063
Posted By irudayaraj
PERL: Function calling using parameters
I have two variables. I need to call them using the same function



my $dat1 ="abc";
my $dat2 ="def";
my $check;
filecheck($dat1,$dat2);
sub filecheck($)
{
$check = shift;
print "first...
2,681
Posted By irudayaraj
PERL : pattern matching a string stored in a variable
I have two variables,



my $filename = "abc_yyyy_mm_dd.txt";
my $filename1 = " abc_2011_11_07.txt";



I need to perform some operations after checking if $filename has $filename1 in it...
1,676
Posted By irudayaraj
Thanks Ranga. It works. What does "8"...
Thanks Ranga. It works.

What does "8" signify here?
Also Can you please explain how this works?

---------- Post updated at 03:30 AM ---------- Previous update was at 03:19 AM ----------

I...
1,676
Posted By irudayaraj
PERL : hhmiss - Date format check and replace
I have a filename,



This can be any of any format,



I want to check if the filename has hours,mins and seconds part. If it is present, i want to replace it with a " * " (star symbol)...
10,166
Posted By irudayaraj
PERL : check + or - sign in a variable
I have a variable $max = -3;
It can be $max = +3;

I need to check if this variable is a positive/negative value.
if its positive, should print "positive" if not "negative"

How can this be...
5,087
Posted By irudayaraj
PERL : Remove spaces in a variable
I have a variable



I want to remove the spaces in between.
The output should be



How can this be done
Any help will be appreciated. Thanks in advance
3,043
Posted By irudayaraj
Thanks ahamed. The below one works fine too...
Thanks ahamed.

The below one works fine too for the same.
3,043
Posted By irudayaraj
PERL : Read an array and write to another array with intial string pattern checks
I have an array and two variables as below,




I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.



I need the...
4,548
Posted By irudayaraj
cool..Thanks:)
cool..Thanks:)
Showing results 1 to 25 of 59

 

Featured Tech Videos

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