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

Re^2: Problem while Data Extraction

by jpvinny28 (Novice)
on Dec 04, 2012 at 04:11 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found