Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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"); }

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 lurking in the Monastery: (6)
As of 2016-10-24 08:42 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (304 votes). Check out past polls.