I'm learning perl now. By using whereis command, I found out where perl command is.
$whereis perl
/usr/bin/perl
I make a program and tried to execute it. But I got error message like this one.
$perl yahoo_search.pl #!/usr/bin/perl
-bash: !/usr/bin/perl: event not found
Can somebody tell me what I should do to solve this problem?

susuoi
Recommended Answers
Jump to PostThe ! character is the default history modifier used by the bash shell (and nothing to do with perl). ! followed by all sorts of things, does all sorts of things.
Eg.
ls file.pl cat !$
!$ refers to the last parameter of the previous command, …
All 4 Replies
Salem
5,138
Posting Sage
katharnakh
7
Posting Whiz in Training
Muaz
0
Newbie Poster
happygeek
2,411
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.