http://qs321.pair.com?node_id=11118381


in reply to Re^4: LWP::Useragent - File Upload
in thread LWP::Useragent - File Upload

And if you switch to single quotes, you can replace the double backslashes by single ones:
my $filename = 'd:\clips\videoclip.mp4';
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^6: LWP::Useragent - File Upload
by jdporter (Paladin) on Jun 24, 2020 at 14:19 UTC

    And I wonder whether backslashes are even necessary there. For most purposes (i.e. virtually everything outside of the brain-dead cmd "shells") forward slashes work just fine.