Perl Tutorial - 51: Reading Text from a File

preview_player
Показать описание
Thanks for watching!

Рекомендации по теме
Комментарии
Автор

Great taste in songs btw, one of the greatest song of pink floyd

shivambabbar
Автор

I just realised. You have not done any videos on taking user input in Perl right?

pradyothshandilya
Автор

sir we are supposed to make a miniproject using perl script . Its going tough for us .plz do help what to do.

pranavbhosale
Автор

Trying to retrieve from another file words that have the same root and their different suffixes. For example the root is belie and I want to find the words believe belief believing believed believes etc. Any idea?

alg
Автор

How can i do to extract an exactly word from that text?

lserranoit
Автор

does it print the whole song at once or line by line


I mean how many times does the loop run?

anudeepreddy
Автор

Hi Madhurbh, thanks for this intro. I have a question: how can i find a string within a file? I tried this, but nothing happens:
#!/usr/bin/perl
system ("unzip -p harman_hisbo_15.odt meta.xml > meta.txt");
system ("touch result.txt");
open(INPUT, '<', 'meta.txt');
open(RESULT, '>', 'result.txt');
print RESULT "It matches\n" if (<INPUT> =~ /date/);
system ("less result.txt");
system ("touch -d 20080824 harman_hisbo_15.odt");
My aim is to pick the digits following the word "date" and use them to change the creation date of the file. Could you help me?

waxy
visit shbcf.ru