Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
How I created the test directory, later zipped with 7zip, makekebabs.pl, its meat
#!/usr/bin/perl -- use utf8; use strict; use warnings; my @kebabs = ( "\x{45B}\x{435}\x{432}\x{430}\x{43F}.txt", "ra\x{17E}nji\x{107}.txt", "\x{107}evap.txt", "\x{43A}\x{435}\x{431}\x{430}\x{43F}\x{447}\x{435}.txt", "kebab.txt", ); binmode STDOUT, ':encoding(UTF-8)'; { use Win32::Unicode qw/ -native /; mkpathW 'meat'; chdirW 'meat'; for my $kebab ( @kebabs ){ print "kebabing the $kebab\n"; open my($fh), '>:raw', $kebab or die Fudge($kebab); print $fh $kebab or die Fudge($kebab); close $fh or die Fudge($kebab); } } sub Fudge { use Errno(); join qq/\n/, "Error @_", map { " $_" } int( $! ) . q/ / . $!, int( $^E ) . q/ / . $^E, grep( { $!{$_} } keys %! ), q/ /; } __END__
kebabing the ћевап.txt
kebabing the ražnjić.txt
kebabing the ćevap.txt
kebabing the кебапче.txt
kebabing the kebab.txt

In reply to Re^3: Seeking help with Extracting files from zip ( makekebabs.pl) by Anonymous Monk
in thread Seeking help with Extracting files from zip by aksjain

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found