Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Problem while Data Extraction

by jpvinny28 (Initiate)
on Dec 04, 2012 at 04:11 UTC ( #1006990=note: print w/ replies, xml ) Need Help??

in reply to Re: Problem while Data Extraction
in thread Problem while Data Extraction

Thank You guys.. YOU GUYS ARE AWESOME.. :)

I improvised your previous code(Although not efficient as yours).. and was able to do it.. THANKS A LOT..

while (<INFILE>) { chomp($_); my @parts = split /(\|[^\|]*\|)/; for my $part (@parts) { if ($part =~ /\|(.*)\|/) { $part=~s/\|//gi; $part=~ tr/ //ds; print ($part); } else { my $hex = ascii_to_hex($part); print ($hex); } } print("\n"); }

Comment on Re^2: Problem while Data Extraction
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006990]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-11-29 08:40 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (749 votes), past polls