Search Results

Search: Posts Made By: rsanjay
6,004
Posted By rsanjay
I did the second option but I am still not able...
I did the second option but I am still not able to access the internal hash key?

$globalHash{$id}{"class"}

My internal hash has a class key. Is the above the right way to access a hash within a...
6,004
Posted By rsanjay
Assigning a hash to another hash key
Hello,

I have a hash in hsh. I need to assign it to another hash globalHsh. I think the below statement does not work

$globalHsh{$id} = %hsh;

What is the right way to assign it?
...
4,177
Posted By rsanjay
Hi, I am relatively new to perl . Is it...
Hi,

I am relatively new to perl . Is it right of me to ask you if you could kindly explain what does the second line do ?

and i created a .pl file of just this code and the cursor was just...
4,177
Posted By rsanjay
if you read the input.txt file. I am trying to...
if you read the input.txt file. I am trying to read each line and create a key value pair of all the
id= c1, class=nb, cx=100, cy=100, r=10


I want to create a hash which will have each comma...
4,177
Posted By rsanjay
Array of hash in perl does not work
Hi ,

I have an input.txt file that i read

node: id= c1, class=nb, cx=100, cy=100, r=10
node: id=c2, class=b, cx=150, cy=130, r=10
node: id=c3, class=nb, cx=50, cy=80, r=10
node: id=c4,...
4,085
Posted By rsanjay
your right...This works like a charm . Thank you .
your right...This works like a charm . Thank you .
4,085
Posted By rsanjay
Perl tr command problem
#!/usr/bin/perl

#use strict;
#use warnings;

my $data = 'node: id=c1, class=nb, cx=100, cy=100, r=10';

#in the above string stored in $data i want to replace = with =" and ',' with "\t ...
Showing results 1 to 7 of 7

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