10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys,
I think this is a basic question. I'm not very familiar with this.
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors:
sub findGridBounds($$$%)
{
use POSIX;
... (0 Replies)
Discussion started by: WongSifu
0 Replies
2. Shell Programming and Scripting
Hi ,
I am having csv contains data
2011-08-23 11:11:00.074+0000: Info: Duplicate Order is not processed,Original Order Tuple
($category, $type) = split(',', $_ , 2);
what is the split function work here??
Thanks
Please start using code tags, thanks. (5 Replies)
Discussion started by: pspriyanka
5 Replies
3. Shell Programming and Scripting
I have a reference to a hash that contains some references. I was just wondering if there was a more simplistic Way of dereferencing the contained references without having to assign them to another reference like this:
my $href = shift; #some hash
my $temp = $href->{element};
print... (3 Replies)
Discussion started by: mrwatkin
3 Replies
4. Shell Programming and Scripting
Hi,
foreach $cat (sort{$cats{$b} <=> $cats{$a}} keys %cats)
can anyone explain me above code?? i am new to perl
Thanks (1 Reply)
Discussion started by: pspriyanka
1 Replies
5. Shell Programming and Scripting
Hi,
can anybody explain me below code
$cats{$category}++
Thanks (2 Replies)
Discussion started by: pspriyanka
2 Replies
6. Programming
Hi friends,
Please see the below code carefully.
=======================================================
# Get batch date and Ord range
open OR,$ARGV;
while (<OR>) { # find the batch date
next if length $_ < 3; # BLANK LINE
# last if $. > 120; # sample should be good enough... (2 Replies)
Discussion started by: pspriyanka
2 Replies
7. Programming
hi,
can anybody explain me the below code. i am new to perl
==========================================
$o_dups{$1} = 1 if /^\w+\t.{19}\t(+),/;
==========================================
regards,
priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies
8. Shell Programming and Scripting
Hi everyone, and thank you for your help with this. I am VERY new with perl so all of your help is appreciated. I have tried google but as I don't know the proper terms to search for and could be daunting for a newbie scripter... I know this is very easy for most of you! Thanks!
I have a... (4 Replies)
Discussion started by: sinusoid
4 Replies
9. Shell Programming and Scripting
I need to process a file line-by-line using some value from a shell variable
Something like:perl -p -e 's/$shell_srch/$shell_replace/g' input.txt
I can't make the '-s' work in the '-p' or '-n' input loop (or couldn't find a syntaxis.)
I have searched and found... (4 Replies)
Discussion started by: alex_5161
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I was jus goin through a ebook on perl....it says u get binary installation for both unix and windows.....doesnt perl come already bundeled with unix ?cause i never installed any perl from binary........but i am able to execute perl programs......
Thanks and Regards
Vivek.S (1 Reply)
Discussion started by: vivekshankar
1 Replies