There used to be an undocumented win32 function called 'PathSetDlgItemPath'. This allowed you to set the text of a windows control to a file or folder path, automatically editing what was displayed to fit inside the available client area. It did this where necessary by shortening the path using '...' ellipsis characters.
I wondered if there was anything similar for perl? I guess, rather than the size of a windows control it would need to be told the maximum number of characters you wanted to display.
In reply to Shortening paths for display by morelenmir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |