Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^8: How is perl able to handle the null byte?

by BrowserUk (Patriarch)
on Jun 18, 2006 at 07:13 UTC ( [id://556058]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## Why oh why does it try to modify the input!?
    my $uPath = encode( 'UTF-16LE', $_ = "\\\\?\\c:\\some\\path", 1 );
    
  2. or download this
    use Encode;
    
    ...
    
    print unpack 'H*', $uPath;;
    5c005c003f005c0043003a005c0073006f006d0065005c007000610074006800
    
  3. or download this
    HANDLE FindFirstFileW( LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFil
    +eData )
    
    LPTCSTR => long pointer to (array of) TCHAR
    TCHAR   => wchar_t
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found