I have a string that looks like this...
example.pdf"
I need to remove the whitespaces and linebreaks. How do I do this? My result should be
"http://www.example.com/example.pdf"
I have a string that looks like this...
example.pdf"
I need to remove the whitespaces and linebreaks. How do I do this? My result should be
"http://www.example.com/example.pdf"
$string =~ s/\s+//g;
From perldoc perlretut:
\s matches a whitespace character, the set [\ \t\r\n\f] and others