Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-07-24 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls