Thanks for all your answers.
Okay now here is my final question on this.
Using the __DATA__ how do I get this to print in reverse.
I have tried puttin the reverse function in the print statement but no luck.
while (<DATA>)
{
$_ =~ s/John/Jack/g;
$_ =~ s/\t/ /g;
$_ =~ s/^/\a/;
$_ =~...
I want an output of my file where I need to substitute all tabs with spaces and put \a at the beginning of each line. Please advise
what I am doing wrong with the last two substitute attempts:
$db = 'aaa.txt';
open(DATA, "$db") or die "did not open: $!\n";
@dat =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.